misc: generate hdpi icons (#44087)

This commit is contained in:
Frédéric Péters 2020-06-15 14:48:26 +02:00
parent 52e178f34a
commit afa8e82c81
3 changed files with 11 additions and 9 deletions

View File

@ -60,6 +60,7 @@ div#side { // w.c.s. steps in backoffice submission
@each $action in $actions {
&.#{$action} a {
background: url(icons/action-#{$action}.small.#{$string-color}.png) center center no-repeat;
background-size: 20px;
background-image: url(icons/action-#{$action}.small.#{$string-color}.png),
url(icons/action-#{$action}.hover.png);
&:hover {

View File

@ -940,6 +940,7 @@ body.sidepage-expanded #sidepage span#applabel::before {
ul#sidepage-menu li a {
background: transparent no-repeat $sidepage-icon-width / 2 - 12px 50%;
background-size: 20px;
padding: 5px 0 5px $sidepage-icon-width + 1px;
}

View File

@ -134,19 +134,19 @@ class build_icons(Command):
if not os.path.exists(destpath):
os.mkdir(destpath)
variants_applications = {
'small': {'colour': 'e7e7e7', 'width': '20'},
'small.white': {'colour': 'ffffff', 'width': '20'},
'small.386ede': {'colour': '386ede', 'width': '20'},
'small.ff375e': {'colour': 'ff375e', 'width': '20'},
'small.6f2b92': {'colour': '6f2b92', 'width': '20'},
'small': {'colour': 'e7e7e7', 'width': '40'},
'small.white': {'colour': 'ffffff', 'width': '40'},
'small.386ede': {'colour': '386ede', 'width': '40'},
'small.ff375e': {'colour': 'ff375e', 'width': '40'},
'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
'large': {'colour': 'e7e7e7', 'width': '80'},
'large-hover': {'colour': 'bebebe', 'width': '80'},
}
variants_actions = {
'small.386ede': {'colour': '386ede', 'width': '20'},
'small.ff375e': {'colour': 'ff375e', 'width': '20'},
'small.6f2b92': {'colour': '6f2b92', 'width': '20'},
'hover': {'colour': '2b2b2b', 'width': '20'},
'small.386ede': {'colour': '386ede', 'width': '40'},
'small.ff375e': {'colour': 'ff375e', 'width': '40'},
'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
'hover': {'colour': '2b2b2b', 'width': '40'},
}
for basepath, dirnames, filenames in os.walk('icons'):
for filename in filenames: