mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: replace qmlprefs::theme with qPrefDisplay::theme
Shortcut and use qPrefDisplay::theme() direct Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
51bc41b517
commit
c9122283cc
4 changed files with 4 additions and 28 deletions
|
|
@ -506,7 +506,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*28)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*28))) : rootItem.width
|
||||
Component.onCompleted: {
|
||||
// this needs to pick the theme from persistent preference settings
|
||||
var theme = prefs.theme
|
||||
var theme = PrefDisplay.theme
|
||||
if (theme == "Blue")
|
||||
blueTheme()
|
||||
else if (theme == "Pink")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue