Commit 73614b4
committed
Gui: support application icon override
Add logic for dynamic changing icons in BitmapFactory, Command,
TreeWidget, and OverlayManager.
Add option 'Preference -> General -> Icon set' for user to select
different icon set. 'Icon set' conf files are normal text files stored
in <UserAppDataDir>/Gui/IconSets/.
Add 'Tools -> Icon browser' to help creating user defined icon set.
Icon set changes is handled by MainWindow by handling
QEvent::StyleChange. Preference 'Icon set' configuration is set through
MainWindow::setOverrideExtraIcons(). Stylesheet can also override icon
by setting MainWindow property 'overrideIcons' as shown below (iconset:
is in <UserAppDataDir>/Gui/IconSets/). It takes precedenece over 'Icon
set'.
Gui--MainWindow {
qproperty-overrideIcons : url(
TreeItemVisible, iconset:MyIcons/TreeItemVisible.svg
TreeItemInvisible, iconset:MyIcons/TreeItemInvisible.svg
);}
@StudioPetrikas1 parent 2a2008b commit 73614b4
24 files changed
Lines changed: 1426 additions & 326 deletions
File tree
- src/Gui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
953 | 951 | | |
954 | 952 | | |
955 | 953 | | |
| 954 | + | |
| 955 | + | |
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1628 | 1628 | | |
1629 | 1629 | | |
1630 | 1630 | | |
1631 | | - | |
| 1631 | + | |
1632 | 1632 | | |
1633 | 1633 | | |
1634 | 1634 | | |
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
2149 | 2154 | | |
2150 | 2155 | | |
2151 | 2156 | | |
| |||
2197 | 2202 | | |
2198 | 2203 | | |
2199 | 2204 | | |
2200 | | - | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
2201 | 2211 | | |
2202 | 2212 | | |
2203 | 2213 | | |
| |||
2618 | 2628 | | |
2619 | 2629 | | |
2620 | 2630 | | |
2621 | | - | |
2622 | 2631 | | |
2623 | 2632 | | |
2624 | 2633 | | |
2625 | | - | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
2626 | 2657 | | |
2627 | 2658 | | |
2628 | 2659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
294 | 296 | | |
| 297 | + | |
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| |||
1289 | 1299 | | |
1290 | 1300 | | |
1291 | 1301 | | |
1292 | | - | |
| 1302 | + | |
| 1303 | + | |
1293 | 1304 | | |
1294 | 1305 | | |
1295 | 1306 | | |
1296 | 1307 | | |
1297 | 1308 | | |
1298 | | - | |
| 1309 | + | |
| 1310 | + | |
1299 | 1311 | | |
1300 | | - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1301 | 1336 | | |
1302 | 1337 | | |
1303 | 1338 | | |
| |||
1311 | 1346 | | |
1312 | 1347 | | |
1313 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1314 | 1360 | | |
1315 | 1361 | | |
1316 | 1362 | | |
| |||
0 commit comments