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
commit 24012cfc7f
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
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)
{