summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/themeinterface.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-14 13:10:07 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-30 07:51:05 +0200
commita3e3a30b701370ec8e35f5cb3d1072642a2f44b1 (patch)
tree24066ddec3e77394eedc278c0ac97216a508e3ab /mobile-widgets/themeinterface.h
parent08e39f9d2d293ac22e6174e7b723abb805650552 (diff)
downloadsubsurface-a3e3a30b701370ec8e35f5cb3d1072642a2f44b1.tar.gz
mobile-widgets: move basePointSize to themeinterface
Check defaultfont and calculate basepointsize in themeinterface instead of in QML. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/themeinterface.h')
-rw-r--r--mobile-widgets/themeinterface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/themeinterface.h b/mobile-widgets/themeinterface.h
index cb89c40fd..ee6a8879c 100644
--- a/mobile-widgets/themeinterface.h
+++ b/mobile-widgets/themeinterface.h
@@ -23,6 +23,9 @@ class themeInterface : public QObject {
Q_PROPERTY(QColor secondaryTextColor MEMBER m_secondaryTextColor NOTIFY secondaryTextColorChanged)
Q_PROPERTY(QColor textColor MEMBER m_textColor NOTIFY textColorChanged)
+ // Font
+ Q_PROPERTY(double basePointSize MEMBER m_basePointSize CONSTANT)
+
// Support
Q_PROPERTY(QString currentTheme MEMBER m_currentTheme WRITE set_currentTheme NOTIFY currentThemeChanged)
Q_PROPERTY(QString iconStyle MEMBER m_iconStyle CONSTANT)
@@ -108,6 +111,8 @@ private:
QColor m_secondaryTextColor;
QColor m_textColor;
+ double m_basePointSize;
+
QString m_currentTheme;
QString m_iconStyle;