aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/themeinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/themeinterface.h')
-rw-r--r--mobile-widgets/themeinterface.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/mobile-widgets/themeinterface.h b/mobile-widgets/themeinterface.h
index ee6a8879c..f06d834da 100644
--- a/mobile-widgets/themeinterface.h
+++ b/mobile-widgets/themeinterface.h
@@ -25,6 +25,11 @@ class themeInterface : public QObject {
// Font
Q_PROPERTY(double basePointSize MEMBER m_basePointSize CONSTANT)
+ Q_PROPERTY(double headingPointSize MEMBER m_headingPointSize NOTIFY headingPointSizeChanged)
+ Q_PROPERTY(double regularPointSize MEMBER m_regularPointSize NOTIFY regularPointSizeChanged)
+ Q_PROPERTY(double smallPointSize MEMBER m_smallPointSize NOTIFY smallPointSizeChanged)
+ Q_PROPERTY(double titlePointSize MEMBER m_titlePointSize NOTIFY titlePointSizeChanged)
+ Q_PROPERTY(double currentScale READ currentScale WRITE set_currentScale NOTIFY currentScaleChanged)
// Support
Q_PROPERTY(QString currentTheme MEMBER m_currentTheme WRITE set_currentTheme NOTIFY currentThemeChanged)
@@ -78,6 +83,9 @@ public:
public slots:
void set_currentTheme(const QString &theme);
+ double currentScale();
+ void set_currentScale(double);
+
signals:
void backgroundColorChanged(QColor);
void contrastAccentColorChanged(QColor);
@@ -92,6 +100,12 @@ signals:
void secondaryTextColorChanged(QColor);
void textColorChanged(QColor);
+ void headingPointSizeChanged(double);
+ void regularPointSizeChanged(double);
+ void smallPointSizeChanged(double);
+ void titlePointSizeChanged(double);
+ void currentScaleChanged(double);
+
void currentThemeChanged(const QString &);
private:
@@ -112,6 +126,10 @@ private:
QColor m_textColor;
double m_basePointSize;
+ double m_headingPointSize;
+ double m_regularPointSize;
+ double m_smallPointSize;
+ double m_titlePointSize;
QString m_currentTheme;
QString m_iconStyle;