diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-02 16:17:48 +0700 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-02 16:17:48 +0700 |
commit | af550776635edbdf850ba731280d381b1044797c (patch) | |
tree | 56fa1bfa59b6ce6ca9751e407789a4bc81c919ea /Bootstrap.hxx | |
parent | 2e19f0766b55ebb0fa614d56900de47484231973 (diff) |
Card background colours
Diffstat (limited to 'Bootstrap.hxx')
-rw-r--r-- | Bootstrap.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Bootstrap.hxx b/Bootstrap.hxx index 320f76c..ce8a907 100644 --- a/Bootstrap.hxx +++ b/Bootstrap.hxx @@ -29,6 +29,7 @@ class Bootstrap : public QObject Q_PROPERTY(QFont headingFont READ headingFont NOTIFY headingFontChanged) Q_PROPERTY(QColor headingColor READ headingColor NOTIFY headingColorChanged) + Q_PROPERTY(QColor cardBg READ cardBg NOTIFY cardBgChanged) QML_ELEMENT QML_UNCREATABLE("Bootstrap is an attached property") @@ -72,6 +73,8 @@ class Bootstrap : public QObject Q_INVOKABLE qreal headingFontSize(const qreal parentWidth = .0); QColor headingColor() const; + QColor cardBg() const; + signals: void themeChanged(); void modeChanged(); @@ -83,6 +86,7 @@ class Bootstrap : public QObject void headingChanged(); void headingFontChanged(); void headingColorChanged(); + void cardBgChanged(); private: Mode bsMode; @@ -101,6 +105,7 @@ class Bootstrap : public QObject QVector<qreal> h4FontSize; QVector<qreal> h5FontSize; QVector<qreal> h6FontSize; + QVector<QColor> cardBgs; }; QML_DECLARE_TYPEINFO(Bootstrap, QML_HAS_ATTACHED_PROPERTIES) |