impr: Clean up window setup code

This commit is contained in:
WerWolv
2025-08-10 12:34:03 +02:00
parent 3e98d0a0f8
commit 5028b354cc
16 changed files with 120 additions and 129 deletions

View File

@@ -41,7 +41,7 @@ static void detectSystemTheme() {
}
});
EventWindowInitialized::subscribe([=] {
EventImHexStartupFinished::subscribe([=] {
bool themeFollowSystem = ContentRegistry::Settings::read<std::string>("hex.builtin.setting.interface", "hex.builtin.setting.interface.color", ThemeManager::NativeTheme) == ThemeManager::NativeTheme;
if (themeFollowSystem)