mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 16:13:56 +02:00
Remove TDESKTOP_FORCE_PANEL_ICON variable since tdesktop gets current icon theme just fine now
This commit is contained in:
parent
55167ea95b
commit
ede7ad1a4c
1 changed files with 1 additions and 3 deletions
|
@ -58,7 +58,6 @@ namespace Platform {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kDisableTrayCounter = "TDESKTOP_DISABLE_TRAY_COUNTER"_cs;
|
constexpr auto kDisableTrayCounter = "TDESKTOP_DISABLE_TRAY_COUNTER"_cs;
|
||||||
constexpr auto kForcePanelIcon = "TDESKTOP_FORCE_PANEL_ICON"_cs;
|
|
||||||
constexpr auto kPanelTrayIconName = "telegram-panel"_cs;
|
constexpr auto kPanelTrayIconName = "telegram-panel"_cs;
|
||||||
constexpr auto kMutePanelTrayIconName = "telegram-mute-panel"_cs;
|
constexpr auto kMutePanelTrayIconName = "telegram-mute-panel"_cs;
|
||||||
constexpr auto kAttentionPanelTrayIconName = "telegram-attention-panel"_cs;
|
constexpr auto kAttentionPanelTrayIconName = "telegram-attention-panel"_cs;
|
||||||
|
@ -149,8 +148,7 @@ QString GetTrayIconName(int counter, bool muted) {
|
||||||
const auto iconName = GetIconName();
|
const auto iconName = GetIconName();
|
||||||
const auto panelIconName = GetPanelIconName(counter, muted);
|
const auto panelIconName = GetPanelIconName(counter, muted);
|
||||||
|
|
||||||
if (QIcon::hasThemeIcon(panelIconName)
|
if (QIcon::hasThemeIcon(panelIconName)) {
|
||||||
|| qEnvironmentVariableIsSet(kForcePanelIcon.utf8())) {
|
|
||||||
return panelIconName;
|
return panelIconName;
|
||||||
} else if (QIcon::hasThemeIcon(iconName)) {
|
} else if (QIcon::hasThemeIcon(iconName)) {
|
||||||
return iconName;
|
return iconName;
|
||||||
|
|
Loading…
Add table
Reference in a new issue