mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: move font property to themeInterface
Move setting of font properties used throughout to themeInterface. Add new settings "currentScale". The properties are kept in main (subsurfaceTheme) in order not to do a big search/replace. Update settings to use currectScale and signal changes in themeinterface. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a3e3a30b70
commit
2cc215d3f2
4 changed files with 59 additions and 14 deletions
|
@ -596,10 +596,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
QtObject {
|
||||
id: subsurfaceTheme
|
||||
|
||||
property double regularPointSize: fontMetrics.font.pointSize
|
||||
property double titlePointSize: regularPointSize * 1.5
|
||||
property double headingPointSize: regularPointSize * 1.2
|
||||
property double smallPointSize: regularPointSize * 0.8
|
||||
property double regularPointSize: ThemeNew.regularPointSize
|
||||
property double titlePointSize: ThemeNew.titlePointSize
|
||||
property double headingPointSize: ThemeNew.headingPointSize
|
||||
property double smallPointSize: ThemeNew.smallPointSize
|
||||
|
||||
// colors currently in use
|
||||
property color darkerPrimaryColor: ThemeNew.darkerPrimaryColor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue