Qt: Fix a couple of theme switching glitches

This commit is contained in:
Stenzek
2024-08-18 13:22:58 +10:00
parent 9d7a3b10c2
commit 6f9e8efee5
11 changed files with 319 additions and 268 deletions

View File

@@ -250,6 +250,21 @@ private:
extern EmuThread* g_emu_thread;
namespace QtHost {
/// Default theme name for the platform.
const char* GetDefaultThemeName();
/// Default language for the platform.
const char* GetDefaultLanguage();
/// Sets application theme according to settings.
void UpdateApplicationTheme();
/// Returns true if the application theme is using dark colours.
bool IsDarkApplicationTheme();
/// Sets the icon theme, based on the current style (light/dark).
void SetIconThemeFromStyle();
/// Sets batch mode (exit after game shutdown).
bool InBatchMode();