mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 16:22:36 -08:00
Add option to display passwords in color in preview panel
Closes #4099 * Fixed bug in Application that did not set the dark theme flag when the theme was changed from dark to light.
This commit is contained in:
1 parent
dc07f01418
commit
14d0732e1d
8 files changed
+68
-13
No files matched your search
@@ -183,6 +183,7 @@ void Application::applyTheme()
|
||||
auto* s = new LightStyle;
|
||||
setPalette(s->standardPalette());
|
||||
setStyle(s);
|
||||
m_darkTheme = false;
|
||||
} else if (appTheme == "dark") {
|
||||
auto* s = new DarkStyle;
|
||||
setPalette(s->standardPalette());
|
||||
@@ -191,7 +192,9 @@ void Application::applyTheme()
|
||||
} else {
|
||||
// Classic mode, don't check for dark theme on Windows
|
||||
// because Qt 5.x does not support it
|
||||
#ifndef Q_OS_WIN
|
||||
#if defined(Q_OS_WIN)
|
||||
m_darkTheme = false;
|
||||
#else
|
||||
m_darkTheme = osUtils->isDarkMode();
|
||||
#endif
|
||||
QFile stylesheetFile(":/styles/base/classicstyle.qss");
|
||||
|
||||
Reference in new issue
Block a user