diff --git a/src/core/FilePath.cpp b/src/core/FilePath.cpp index 330542eb95..c6f1907ad7 100644 --- a/src/core/FilePath.cpp +++ b/src/core/FilePath.cpp @@ -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 diff --git a/src/core/FilePath.h b/src/core/FilePath.h index f84f84e0e9..b0f0397e2a 100644 --- a/src/core/FilePath.h +++ b/src/core/FilePath.h @@ -29,6 +29,7 @@ class FilePath QString pluginPath(const QString& name); QString wordlistPath(const QString& name); QIcon applicationIcon(); + QIcon trayIcon(); QIcon trayIconLocked(); QIcon trayIconUnlocked(); QIcon icon(const QString& category, const QString& name, bool fromTheme = true); diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 1822c48d44..301b80c452 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -899,7 +899,7 @@ void MainWindow::updateTrayIcon() m_trayIcon->setContextMenu(menu); - m_trayIcon->setIcon(filePath()->applicationIcon()); + m_trayIcon->setIcon(filePath()->trayIcon()); m_trayIcon->show(); } if (m_ui->tabWidget->hasLockableDatabases()) {