mobile-widgets: switch to new subsurfaceTheme

Remove subsurfaceTheme from main.qml
Replace ThemeNew -> subsurfaceTheme
change registration ThemeNew -> subsurfaceTheme

Signed-off-by: jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2020-01-15 09:40:54 +01:00 committed by Dirk Hohndel
parent 38120d555f
commit 35de9c49a4
5 changed files with 8 additions and 32 deletions

View file

@ -563,7 +563,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
] // end actions
Image {
fillMode: Image.PreserveAspectFit
source: "qrc:///icons/" + (ThemeNew.currentTheme !== "" ? ThemeNew.currentTheme : "Blue") + "_gps.svg"
source: "qrc:///icons/" + (subsurfaceTheme.currentTheme !== "" ? subsurfaceTheme.currentTheme : "Blue") + "_gps.svg"
visible: locationServiceEnabled
}
}
@ -607,30 +607,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
}
QtObject {
id: subsurfaceTheme
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
property color darkerPrimaryTextColor: ThemeNew.darkerPrimaryTextColor
property color primaryColor: ThemeNew.primaryColor
property color primaryTextColor: ThemeNew.primaryTextColor
property color lightPrimaryColor: ThemeNew.lightPrimaryColor
property color lightPrimaryTextColor: ThemeNew.lightPrimaryTextColor
property color backgroundColor: ThemeNew.backgroundColor
property color textColor: ThemeNew.textColor
property color secondaryTextColor: ThemeNew.secondaryTextColor
property color drawerColor: ThemeNew.drawerColor
property color contrastAccentColor: ThemeNew.contrastAccentColor
property color lightDrawerColor: ThemeNew.lightDrawerColor
}
onWidthChanged: {
manager.appendTextToLog("Window width changed to " + width + " orientation " + Screen.primaryOrientation)
if (placeHolder.initialWidth !== undefined) {