forked from Green-Sky/tomato
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_CHECKVERSION();
|
||||||
ImGui::CreateContext();
|
ImGui::CreateContext();
|
||||||
|
|
||||||
//ImGui::StyleColorsDark();
|
if (SDL_GetSystemTheme() == SDL_SYSTEM_THEME_LIGHT) {
|
||||||
setThemeGreen();
|
ImGui::StyleColorsLight();
|
||||||
|
} else {
|
||||||
|
//ImGui::StyleColorsDark();
|
||||||
|
setThemeGreen();
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
ImGui::GetIO().Fonts->ClearFonts();
|
ImGui::GetIO().Fonts->ClearFonts();
|
||||||
|
Loading…
Reference in New Issue
Block a user