mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
08e39f9d2d
commit
a3e3a30b70
5 changed files with 17 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue