Projet

Général

Profil

0001-misc-generate-hdpi-icons-44087.patch

Frédéric Péters, 15 juin 2020 14:48

Télécharger (3,02 ko)

Voir les différences:

Subject: [PATCH] misc: generate hdpi icons (#44087)

 gadjo/static/css/_wcs.scss  |  1 +
 gadjo/static/css/gadjo.scss |  1 +
 setup.py                    | 18 +++++++++---------
 3 files changed, 11 insertions(+), 9 deletions(-)
gadjo/static/css/_wcs.scss
60 60
	@each $action in $actions {
61 61
		&.#{$action} a {
62 62
			background: url(icons/action-#{$action}.small.#{$string-color}.png) center center no-repeat;
63
			background-size: 20px;
63 64
			background-image: url(icons/action-#{$action}.small.#{$string-color}.png),
64 65
					  url(icons/action-#{$action}.hover.png);
65 66
			&:hover {
gadjo/static/css/gadjo.scss
915 915

  
916 916
ul#sidepage-menu li a {
917 917
	background: transparent no-repeat $sidepage-icon-width / 2 - 12px 50%;
918
	background-size: 20px;
918 919
	padding: 5px 0 5px $sidepage-icon-width + 1px;
919 920
}
920 921

  
setup.py
134 134
        if not os.path.exists(destpath):
135 135
            os.mkdir(destpath)
136 136
        variants_applications = {
137
            'small': {'colour': 'e7e7e7', 'width': '20'},
138
            'small.white': {'colour': 'ffffff', 'width': '20'},
139
            'small.386ede': {'colour': '386ede', 'width': '20'},
140
            'small.ff375e': {'colour': 'ff375e', 'width': '20'},
141
            'small.6f2b92': {'colour': '6f2b92', 'width': '20'},
137
            'small': {'colour': 'e7e7e7', 'width': '40'},
138
            'small.white': {'colour': 'ffffff', 'width': '40'},
139
            'small.386ede': {'colour': '386ede', 'width': '40'},
140
            'small.ff375e': {'colour': 'ff375e', 'width': '40'},
141
            'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
142 142
            'large': {'colour': 'e7e7e7', 'width': '80'},
143 143
            'large-hover': {'colour': 'bebebe', 'width': '80'},
144 144
        }
145 145
        variants_actions = {
146
            'small.386ede': {'colour': '386ede', 'width': '20'},
147
            'small.ff375e': {'colour': 'ff375e', 'width': '20'},
148
            'small.6f2b92': {'colour': '6f2b92', 'width': '20'},
149
            'hover': {'colour': '2b2b2b', 'width': '20'},
146
            'small.386ede': {'colour': '386ede', 'width': '40'},
147
            'small.ff375e': {'colour': 'ff375e', 'width': '40'},
148
            'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
149
            'hover': {'colour': '2b2b2b', 'width': '40'},
150 150
        }
151 151
        for basepath, dirnames, filenames in os.walk('icons'):
152 152
            for filename in filenames:
153
-