This commit is contained in:
luisangelsm
2026-02-19 18:41:25 +01:00
parent b4dc5badea
commit 892d6f3b08
4 changed files with 12 additions and 13 deletions

View File

@ -2,17 +2,17 @@
namespace { namespace {
const char *labelColorNames[] = { const char *labelColorNames[] = {
QT_TR_NOOP("red"), QT_TR_NOOP("red"),
QT_TR_NOOP("orange"), QT_TR_NOOP("orange"),
QT_TR_NOOP("yellow"), QT_TR_NOOP("yellow"),
QT_TR_NOOP("green"), QT_TR_NOOP("green"),
QT_TR_NOOP("cyan"), QT_TR_NOOP("cyan"),
QT_TR_NOOP("blue"), QT_TR_NOOP("blue"),
QT_TR_NOOP("violet"), QT_TR_NOOP("violet"),
QT_TR_NOOP("purple"), QT_TR_NOOP("purple"),
QT_TR_NOOP("pink"), QT_TR_NOOP("pink"),
QT_TR_NOOP("white"), QT_TR_NOOP("white"),
QT_TR_NOOP("light"), QT_TR_NOOP("light"),
QT_TR_NOOP("dark") QT_TR_NOOP("dark")
}; };
} }

View File

@ -244,4 +244,3 @@ void InfoComicsView::applyTheme(const Theme &theme)
ctxt->setContextProperty("showDropShadow", QVariant(qv.showDropShadow)); ctxt->setContextProperty("showDropShadow", QVariant(qv.showDropShadow));
} }

View File

@ -29,7 +29,7 @@ private:
QPushButton *close; QPushButton *close;
QPushButton *accept; QPushButton *accept;
QLabel *qrCode; QLabel *qrCode;
// Labels for themable styling // Labels for themable styling
QLabel *titleLabel; QLabel *titleLabel;
QLabel *qrMessageLabel; QLabel *qrMessageLabel;

View File

@ -18,7 +18,7 @@ class EditShortcutsDialog : public QDialog, protected Themable
public: public:
explicit EditShortcutsDialog(QWidget *parent = 0); explicit EditShortcutsDialog(QWidget *parent = 0);
void addActionsGroup(const QString &name, const QIcon &ico, QList<QAction *> &group); void addActionsGroup(const QString &name, const QIcon &ico, QList<QAction *> &group);
void setGroupIconMapping(const QMap<QString, std::function<QIcon(const Theme&)>> &mapping); void setGroupIconMapping(const QMap<QString, std::function<QIcon(const Theme &)>> &mapping);
signals: signals:
public slots: public slots:
@ -33,8 +33,8 @@ protected:
QListView *actionsGroupsListView; QListView *actionsGroupsListView;
QTableView *actionsTableView; QTableView *actionsTableView;
ActionsGroupsModel *groupsModel; ActionsGroupsModel *groupsModel;
QMap<QString, std::function<QIcon(const Theme&)>> groupIconMapping; QMap<QString, std::function<QIcon(const Theme &)>> groupIconMapping;
ActionsShortcutsModel *actionsModel; ActionsShortcutsModel *actionsModel;
}; };