mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 09:18:36 +00:00
DolphinQt: Adjust panel-specific colors and syntax highlighting for dark theme.
This commit is contained in:
parent
887b07af71
commit
521d6e93c7
8 changed files with 97 additions and 28 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue