Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2020-12-19 02:20:24 +0300
committerJanek Bevendorff <janek@jbev.net>2021-01-07 17:22:48 +0300
commit80c1b9be6a09cee67411840ecde129bcab70ebe1 (patch)
tree9280eda76267e898830e79a871ab298bc67f91a5 /src/gui/Icons.h
parent37dab85df7e196c5596dd42d7fe09b95284507bd (diff)
Improve macOS platform integration.
- Allow switching between themes without restart (except classic) - Rework icon loading and recolouring logic to react to theme changes - Automatically react to light/dark theme change - Remove explicit selection of monochrome tray icon variant (selected automatically now) - Update theme background colours for Big Sur - Update application icon to match Big Sur HIG The tray icon doesn't respond perfectly to theme changes yet on Big Sur, since we need different icons for dark and light theme and cannot simply let the OS recolour the icon for us (we do that, too, but only as an additional fallback). At the moment, there is no signal to listen to that would allow this. This patch adds a few generic methods to OSUtils for detecting and communicating theme changes, which are only stubs for Windows and Linux at the moment and need to be implemented in future commits. Fixes #4933 Fixes #5349
Diffstat (limited to 'src/gui/Icons.h')
-rw-r--r--src/gui/Icons.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/Icons.h b/src/gui/Icons.h
index 532f520e4..b002a241b 100644
--- a/src/gui/Icons.h
+++ b/src/gui/Icons.h
@@ -28,7 +28,7 @@ class Icons
{
public:
QIcon applicationIcon();
- QIcon trayIcon();
+ QIcon trayIcon(QString style = "unlocked");
QIcon trayIconLocked();
QIcon trayIconUnlocked();
QString trayIconAppearance() const;