mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 12:33:25 -08:00
[Interface] Load the hover panel icons through the themed icon engine
The panel still named pre-#7595 assets (arrow_*_green, arrow_right_blue, cogwheel) and built QIcon snapshots from themePixmap(), so the deleted names rendered blank and every other glyph froze one palette. Load every glyph through loadThemedIcon() with the emphasis axis the adoption plan calls for: the category tabs take the primary level as panel wayfinding, the action grid the quiet level because its glyphs label the button text. Semantic tints keep their family and follow the same quiet level; Clone keeps its sticker treatment.
This commit is contained in:
parent
f7a5127e36
commit
2b3a04857f
2 changed files with 85 additions and 51 deletions
|
|
@ -30,6 +30,7 @@ class QPushButton;
|
|||
class QToolButton;
|
||||
class QButtonGroup;
|
||||
class QStackedWidget;
|
||||
class QIcon;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QEnterEvent;
|
||||
|
|
@ -161,7 +162,7 @@ private:
|
|||
void createNameBarOverlay();
|
||||
void createPTOverlay();
|
||||
void createNavBar();
|
||||
QToolButton *createNavButton(const QString &title, const QString &iconName, int pageIndex);
|
||||
QToolButton *createNavButton(const QString &title, const QIcon &icon, int pageIndex);
|
||||
void createContentStack();
|
||||
QWidget *makeStackPage(QVBoxLayout *&layout);
|
||||
void showPage(int index);
|
||||
|
|
@ -204,7 +205,7 @@ private:
|
|||
|
||||
QPushButton *createOverlayButton(const QString &text, const QString &tooltip, const std::function<void()> &slot);
|
||||
QToolButton *createGridButton(const QString &text,
|
||||
const QString &iconName,
|
||||
const QIcon &icon,
|
||||
const std::function<void()> &slot,
|
||||
QWidget *parent,
|
||||
const QString &tooltip = QString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue