mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-27 20:36:49 -08:00
Improve colorful lock icon for system tray (#9632)
* Fix #9432 * Simplify tray icon selection code * Update all icons with latest export * Fix MIME type icon appearance on KDE --------- Co-authored-by: Janek Bevendorff <[email protected]>
This commit is contained in:
1 parent
eee4ca9a26
commit
3e6b118267
49 files changed
+800
-902
No files matched your search
@@ -1561,12 +1561,8 @@ void MainWindow::updateTrayIcon()
|
||||
connect(actionToggle, SIGNAL(triggered()), SLOT(toggleWindow()));
|
||||
}
|
||||
|
||||
if (m_ui->tabWidget->hasLockableDatabases()) {
|
||||
m_trayIcon->setIcon(icons()->trayIconUnlocked());
|
||||
} else {
|
||||
m_trayIcon->setIcon(icons()->trayIconLocked());
|
||||
}
|
||||
|
||||
bool showUnlocked = m_ui->tabWidget->hasLockableDatabases();
|
||||
m_trayIcon->setIcon(icons()->trayIcon(showUnlocked));
|
||||
m_trayIcon->setToolTip(windowTitle().replace("[*]", isWindowModified() ? "*" : ""));
|
||||
m_trayIcon->show();
|
||||
|
||||
|
||||
Reference in new issue
Block a user