File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
73
73
/* ---------------------------------------------------------*\
74
74
| Load theme settings |
75
75
\*---------------------------------------------------------*/
76
- ui->ComboBoxTheme ->addItems ({" auto " , " light " , " dark " });
76
+ ui->ComboBoxTheme ->addItems ({" Auto " , " Light " , " Dark " });
77
77
78
78
json theme_settings = ResourceManager::get ()->GetSettingsManager ()->GetSettings (" Theme" );
79
79
@@ -84,7 +84,7 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
84
84
}
85
85
else
86
86
{
87
- ui->ComboBoxTheme ->setCurrentText (QString::fromStdString ((" light " )));
87
+ ui->ComboBoxTheme ->setCurrentText (QString::fromStdString ((" Light " )));
88
88
}
89
89
90
90
theme_initialized = true ;
Original file line number Diff line number Diff line change @@ -93,19 +93,19 @@ bool OpenRGBThemeManager::IsDarkTheme()
93
93
/* -------------------------------------------------*\
94
94
| Read the theme key and adjust accordingly |
95
95
\*-------------------------------------------------*/
96
- std::string current_theme = " light " ;
96
+ std::string current_theme = " Light " ;
97
97
98
98
if (theme_settings.contains (" theme" ))
99
99
{
100
100
current_theme = theme_settings[" theme" ];
101
101
}
102
102
103
- if (current_theme == " dark " )
103
+ if (current_theme == " Dark " )
104
104
{
105
105
return true ;
106
106
}
107
107
#ifdef _WIN32
108
- else if (current_theme == " auto " )
108
+ else if (current_theme == " Auto " )
109
109
{
110
110
QSettings settings (" HKEY_CURRENT_USER\\ Software\\ Microsoft\\ Windows\\ CurrentVersion\\ Themes\\ Personalize" , QSettings::NativeFormat);
111
111
You can’t perform that action at this time.
0 commit comments