DolphinQt: Adjust panel-specific colors and syntax highlighting for dark theme.

This commit is contained in:
Admiral H. Curtiss
2023-08-01 20:47:17 +02:00
parent c2e29153e9
commit 24012cfc7f
8 changed files with 97 additions and 28 deletions

View File

@ -163,6 +163,11 @@ bool Settings::IsSystemDark()
return s_system_dark;
}
bool Settings::IsThemeDark()
{
return qApp->palette().color(QPalette::Base).valueF() < 0.5;
}
// Calling this before the main window has been created breaks the style of some widgets.
void Settings::SetCurrentUserStyle(const QString& stylesheet_name)
{