mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
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:
parent
e28f31c93e
commit
c3ebaefd85
4 changed files with 147 additions and 81 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue