Read user path, then fall through to system, only write to user.

Took 1 hour 21 minutes

Took 5 seconds


Took 40 seconds
This commit is contained in:
Lukas Brübach 2026-06-19 12:26:43 +02:00
parent e28f31c93e
commit c3ebaefd85
4 changed files with 147 additions and 81 deletions

View file

@ -63,6 +63,8 @@ protected:
public:
bool isBuiltInTheme();
bool isDarkMode(const QString &themeDirPath);
static bool isDarkMode(const QString &themeDirPath, const QString &userDirPath = {});
static QString userThemeDirFor(const QString &themeName);
QStringMap &getAvailableThemes();
// Returns the path to the currently active theme directory (empty = default)
QString getCurrentThemePath() const