mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Fix macOS tray icon
This commit is contained in:
@@ -135,18 +135,18 @@ private:
|
|||||||
QImage iconImageDarkSelected(cWorkingDir() + "tdata/icon_dark_selected.png");
|
QImage iconImageDarkSelected(cWorkingDir() + "tdata/icon_dark_selected.png");
|
||||||
|
|
||||||
|
|
||||||
static const auto LightModeResult = iconImage.isNull()
|
static const auto LightModeResult = iconImageLight.isNull()
|
||||||
? WithColor({ 0, 0, 0, 180 })
|
? WithColor({ 0, 0, 0, 180 })
|
||||||
: iconImageLight;
|
: iconImageLight;
|
||||||
static const auto DarkModeResult = iconImageDark.isNull()
|
static const auto DarkModeResult = iconImageDark.isNull()
|
||||||
? WithColor({ 255, 255, 255 })
|
? WithColor({ 255, 255, 255 })
|
||||||
: iconImage.isNull()
|
: iconImageLight.isNull()
|
||||||
? iconImageDark
|
? iconImageDark
|
||||||
: iconImage;
|
: iconImageLight;
|
||||||
static const auto LightModeSelectedResult = iconImageLightSelected.isNull()
|
static const auto LightModeSelectedResult = iconImageLightSelected.isNull()
|
||||||
? (iconImage.isNull()
|
? (iconImageLight.isNull()
|
||||||
? DarkModeResult
|
? DarkModeResult
|
||||||
: iconImage)
|
: iconImageLight)
|
||||||
: iconImageLightSelected;
|
: iconImageLightSelected;
|
||||||
static const auto DarkModeSelectedResult = iconImageDarkSelected.isNull()
|
static const auto DarkModeSelectedResult = iconImageDarkSelected.isNull()
|
||||||
? DarkModeResult
|
? DarkModeResult
|
||||||
|
Reference in New Issue
Block a user