summaryrefslogtreecommitdiff
path: root/Bootstrap.hxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-12 17:28:44 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-12 17:28:44 +0800
commit81a72b6eeb0614d2f8139314cf5d3948faa467b0 (patch)
treee4db90f5f12c80fc6089d9db18397c32a5000c2a /Bootstrap.hxx
parentdb23fd439fbc4acf7cb102538decb3e49100d6ff (diff)
Body font & its use in Label
Diffstat (limited to 'Bootstrap.hxx')
-rw-r--r--Bootstrap.hxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Bootstrap.hxx b/Bootstrap.hxx
index 8b70645..37b5870 100644
--- a/Bootstrap.hxx
+++ b/Bootstrap.hxx
@@ -1,8 +1,9 @@
#ifndef BOOTSTRAP_HXX
#define BOOTSTRAP_HXX
-#include <QtQml>
+#include <QFont>
#include <QColor>
+#include <QtQml>
class Qootstrap : public QQmlEngineExtensionPlugin
{
@@ -16,6 +17,9 @@ class Bootstrap : public QObject
Q_CLASSINFO("RegisterEnumClassesUnscoped", "false")
Q_PROPERTY(Mode mode READ mode WRITE setMode NOTIFY modeChanged)
Q_PROPERTY(Theme theme READ theme WRITE setTheme NOTIFY themeChanged)
+ Q_PROPERTY(QString fontSansSerif READ fontSansSerif
+ NOTIFY fontSansSerifChanged)
+ Q_PROPERTY(QFont bodyFont READ bodyFont NOTIFY bodyFontChanged)
Q_PROPERTY(QColor bodyColor READ bodyColor NOTIFY bodyColorChanged)
Q_PROPERTY(QColor bodyBg READ bodyBg NOTIFY bodyBgChanged)
Q_PROPERTY(QColor borderColor READ borderColor
@@ -51,6 +55,8 @@ class Bootstrap : public QObject
Theme theme() const;
void setTheme(Theme theme);
+ QString fontSansSerif() const;
+ QFont bodyFont() const;
QColor bodyColor() const;
QColor bodyBg() const;
QColor borderColor() const;
@@ -61,10 +67,14 @@ class Bootstrap : public QObject
void bodyColorChanged();
void bodyBgChanged();
void borderColorChanged();
+ void fontSansSerifChanged();
+ void bodyFontChanged();
private:
Mode bsMode;
Theme bsTheme;
+ QString bsFontSansSerif;
+ QFont bsBodyFont;
QVector<QColor> bodyColors;
QVector<QColor> bodyBgs;
QVector<QColor> borderColors;