mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
Loaded the traced icons by theme name and removed the PNGs they replace
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user