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:
Wolfram Rösler authored and Jonathan White committed 2022-10-16 19:17:02 -04:00
1 parent dc07f01418
commit 14d0732e1d
8 files changed
+68 -13

No files matched your search

+4 -1
View File
@@ -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");