Loaded the traced icons by theme name and removed the PNGs they replace

This commit is contained in:
Jeff Patterson
2026-10-01 05:39:46 -05:00
parent 5057817b6e
commit 194708c0da
91 changed files with 39 additions and 133 deletions
+5 -4
View File
@@ -568,10 +568,11 @@ void QET::Icons::initIcons()
// The elements panel shows the project root with this icon in a 50 px
// slot meant for element previews. The theme name "project" also
// carries the 128 px file used by the configuration dialog, and on a
// 2x display Qt's theme loader would pick it and fill the slot. Load
// the two small files directly so the item stays at 16/22 px.
ProjectFileGP.addFile(":/ico/themes/qet/16x16/project.png");
ProjectFileGP.addFile(":/ico/themes/qet/22x22/project.png");
// 2x display Qt's theme loader would pick it and fill the slot. Keep
// only the 16 and 22 px pixmaps so the item stays at that size.
ProjectFileGP = QIcon();
for (int size : {16, 22})
ProjectFileGP.addPixmap(Projects.pixmap(QSize(size, size), 1.0));
QETLogo = QIcon::fromTheme("qet");
QETManual = QIcon::fromTheme("help-contents");
QETLogo.addFile(":/ico/256x256/qet.png");