mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
Themes: remove all hardcoded extensions
This commit is contained in:
parent
226a8cc017
commit
00e3e63f41
27 changed files with 348 additions and 419 deletions
|
|
@ -18,18 +18,15 @@ public:
|
|||
ThemeManager(QObject *parent = 0);
|
||||
private:
|
||||
QBrush handBgBrush, stackBgBrush, tableBgBrush, playerBgBrush;
|
||||
QPixmap cardBackPixmap;
|
||||
QStringMap availableThemes;
|
||||
protected:
|
||||
void ensureThemeDirectoryExists();
|
||||
QBrush loadBrush(QDir dir, QString fileName, QColor fallbackColor);
|
||||
QPixmap loadPixmap(QDir dir, QString fileName);
|
||||
public:
|
||||
QBrush &getHandBgBrush() { return handBgBrush; }
|
||||
QBrush &getStackBgBrush() { return stackBgBrush; }
|
||||
QBrush &getTableBgBrush() { return tableBgBrush; }
|
||||
QBrush &getPlayerBgBrush() { return playerBgBrush; }
|
||||
QPixmap &getCardBackPixmap() { return cardBackPixmap; }
|
||||
QStringMap &getAvailableThemes();
|
||||
protected slots:
|
||||
void themeChangedSlot();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue