Commit 8c1e9c1
committed
Send optimized icon size
Lookup for the most common icon sizes and select one of them first. Then
revert to whatever available size which does not violate our maximum.
Unfortunately pre-SVG era icon designs for few legacy applications is
totally different per icon size. So sending the highest resolution is
not always desirable as it does not scale down well on low-DPI screens.
Practically this patch does not change anything for most programs
(compared to previous situation). Since the previous code started from
128x128 down to the lowest resolution.
Background on various icon sizes in different OS:
https://icons8.com/blog/articles/choosing-the-right-size-and-format-for-icons/
resolves: QubesOS/qubes-issues#103591 parent 299a8ba commit 8c1e9c1
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
38 | 49 | | |
39 | 50 | | |
40 | 51 | | |
| |||
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
250 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
251 | 268 | | |
252 | 269 | | |
253 | 270 | | |
| |||
0 commit comments