theme according to system
This commit is contained in:
parent
e76e56e025
commit
93140231c6
@ -55,8 +55,12 @@ int main(int argc, char** argv) {
|
||||
IMGUI_CHECKVERSION();
|
||||
ImGui::CreateContext();
|
||||
|
||||
if (SDL_GetSystemTheme() == SDL_SYSTEM_THEME_LIGHT) {
|
||||
ImGui::StyleColorsLight();
|
||||
} else {
|
||||
//ImGui::StyleColorsDark();
|
||||
setThemeGreen();
|
||||
}
|
||||
|
||||
{
|
||||
ImGui::GetIO().Fonts->ClearFonts();
|
||||
|
Loading…
Reference in New Issue
Block a user