Fix dark tray icon option making all icons dark

Introduces a separate path for tray icons which are neither locked nor
unlocked.

Closes #1556.
This commit is contained in:
Thomas Luzat
2018-03-08 03:57:14 +01:00
committed by TheZ3ro
parent 2fcaeeaec8
commit 082ecc3f37
3 changed files with 11 additions and 2 deletions

View File

@@ -97,6 +97,15 @@ QString FilePath::wordlistPath(const QString& name)
}
QIcon FilePath::applicationIcon()
{
#ifdef KEEPASSXC_DIST_SNAP
return icon("apps", "keepassxc", false);
#else
return icon("apps", "keepassxc");
#endif
}
QIcon FilePath::trayIcon()
{
bool darkIcon = useDarkIcon();
@@ -107,7 +116,6 @@ QIcon FilePath::applicationIcon()
#endif
}
QIcon FilePath::trayIconLocked()
{
#ifdef KEEPASSXC_DIST_SNAP