[ThemeManager] Extract system theme dir path resolution to helper, use it in default palette fetching

Took 8 minutes
This commit is contained in:
Lukas Brübach 2026-07-20 21:43:14 +02:00
parent 6e41e3502a
commit d70349da4a
3 changed files with 38 additions and 14 deletions

View file

@ -76,6 +76,10 @@ public:
// Load/save per-scheme palette colors
static PaletteConfig loadPaletteConfig(const QString &themeDirPath, const QString &colorScheme);
static bool savePaletteConfig(const QString &themeDirPath, const QString &colorScheme, const PaletteConfig &cfg);
// Load the theme's shipped default palette, falling back to the system
// theme directory when it is absent from the resolved (user) directory.
static PaletteConfig
loadDefaultPaletteConfig(const QString &themeDirPath, const QString &themeName, const QString &colorScheme);
void setColorScheme(const QString &scheme);
void reloadCurrentTheme();