Custom icons should have priority (#35)
This commit is contained in:
parent
e05f2b2865
commit
a240ae5b84
1 changed files with 6 additions and 5 deletions
|
|
@ -177,7 +177,11 @@ QIcon TrayIconGen(int counter, bool muted) {
|
||||||
if (currentImageBack.isNull()
|
if (currentImageBack.isNull()
|
||||||
|| iconThemeName != TrayIconThemeName
|
|| iconThemeName != TrayIconThemeName
|
||||||
|| iconName != TrayIconName) {
|
|| iconName != TrayIconName) {
|
||||||
if (!iconName.isEmpty()) {
|
if (QFileInfo::exists(cWorkingDir() + "tdata/icon.png")) {
|
||||||
|
currentImageBack = QImage(cWorkingDir() + "tdata/icon.png");
|
||||||
|
} else if (cCustomAppIcon() != 0) {
|
||||||
|
currentImageBack = Core::App().logo(cCustomAppIcon());
|
||||||
|
} else if (!iconName.isEmpty()) {
|
||||||
if (systemIcon.isNull()) {
|
if (systemIcon.isNull()) {
|
||||||
systemIcon = QIcon::fromTheme(iconName);
|
systemIcon = QIcon::fromTheme(iconName);
|
||||||
}
|
}
|
||||||
|
|
@ -199,10 +203,7 @@ QIcon TrayIconGen(int counter, bool muted) {
|
||||||
.toImage();
|
.toImage();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
currentImageBack = QImage(cWorkingDir() + "tdata/icon.png");
|
currentImageBack = Core::App().logo();
|
||||||
if (currentImageBack.isNull()) {
|
|
||||||
currentImageBack = Core::App().logo(cCustomAppIcon());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentImageBack.size() != desiredSize) {
|
if (currentImageBack.size() != desiredSize) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue