theme according to system

This commit is contained in:
Green Sky 2024-01-21 14:28:56 +01:00
parent e76e56e025
commit 93140231c6
No known key found for this signature in database

View File

@ -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();