aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/componentcore/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/componentcore/theme.h')
-rw-r--r--src/plugins/qmldesigner/components/componentcore/theme.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/theme.h b/src/plugins/qmldesigner/components/componentcore/theme.h
index 6940c0c1cf..4cc4deb298 100644
--- a/src/plugins/qmldesigner/components/componentcore/theme.h
+++ b/src/plugins/qmldesigner/components/componentcore/theme.h
@@ -41,12 +41,95 @@ namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT Theme : public Utils::Theme
{
Q_OBJECT
+
+ Q_ENUMS(Icon)
+
public:
+ enum Icon {
+ actionIcon,
+ actionIconBinding,
+ addColumnAfter,
+ addColumnBefore,
+ addFile,
+ addRowAfter,
+ addRowBefore,
+ addTable,
+ adsClose,
+ adsDetach,
+ adsDropDown,
+ aliasAnimated,
+ aliasProperty,
+ alignBottom,
+ alignCenterHorizontal,
+ alignCenterVertical,
+ alignLeft,
+ alignRight,
+ alignTo,
+ alignTop,
+ assign,
+ anchorBaseline,
+ anchorBottom,
+ anchorFill,
+ anchorLeft,
+ anchorRight,
+ anchorTop,
+ annotationBubble,
+ annotationDecal,
+ centerHorizontal,
+ centerVertical,
+ curveEditor,
+ closeCross,
+ decisionNode,
+ deleteColumn,
+ deleteRow,
+ deleteTable,
+ detach,
+ distributeBottom,
+ distributeCenterHorizontal,
+ distributeCenterVertical,
+ distributeLeft,
+ distributeOriginBottomRight,
+ distributeOriginCenter,
+ distributeOriginNone,
+ distributeOriginTopLeft,
+ distributeRight,
+ distributeSpacingHorizontal,
+ distributeSpacingVertical,
+ distributeTop,
+ edit,
+ fontStyleBold,
+ fontStyleItalic,
+ fontStyleStrikethrough,
+ fontStyleUnderline,
+ mergeCells,
+ redo,
+ splitColumns,
+ splitRows,
+ startNode,
+ testIcon,
+ textAlignBottom,
+ textAlignCenter,
+ textAlignLeft,
+ textAlignMiddle,
+ textAlignRight,
+ textAlignTop,
+ textBulletList,
+ textFullJustification,
+ textNumberedList,
+ tickIcon,
+ triState,
+ undo,
+ upDownIcon,
+ upDownSquare2,
+ wildcard
+ };
+
static Theme *instance();
static QString replaceCssColors(const QString &input);
static void setupTheme(QQmlEngine *engine);
static QColor getColor(Color role);
static QPixmap getPixmap(const QString &id);
+ static QString getIconUnicode(Theme::Icon i);
Q_INVOKABLE QColor qmlDesignerBackgroundColorDarker() const;
Q_INVOKABLE QColor qmlDesignerBackgroundColorDarkAlternate() const;
@@ -58,9 +141,12 @@ public:
Q_INVOKABLE int smallFontPixelSize() const;
Q_INVOKABLE int captionFontPixelSize() const;
Q_INVOKABLE bool highPixelDensity() const;
+
private:
Theme(Utils::Theme *originTheme, QObject *parent);
QColor evaluateColorAtThemeInstance(const QString &themeColorName);
+
+ QObject *m_constants;
};
} // namespace QmlDesigner