From 8fad349c82b0f681d6daa95bcfe843e806b48dd7 Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Sun, 29 Nov 2015 19:09:59 +0100 Subject: new container for extended theme properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the properties we previously added to units and theme into their own container. This encapsulates these things that belong together and allows us to move it out later without many problems. Also, litter the global namespace a bit less. Signed-off-by: Sebastian Kügler --- qt-mobile/qml/main.qml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'qt-mobile') diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index 0feaa002e..5f4cdd352 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -13,9 +13,6 @@ MobileComponents.ApplicationWindow { property bool fullscreen: true property alias messageText: message.text - property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) - property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7) - FontMetrics { id: fontMetrics } @@ -111,20 +108,14 @@ MobileComponents.ApplicationWindow { } ] } -// MobileComponents.Units { -// id: units -// -// property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) -// property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7) -// -// } -// -// MobileComponents.Theme { -// id: theme -// /* Added for subsurface */ -// property color accentColor: "#2d5b9a" -// property color accentTextColor: "#ececec" -// } + + QtObject { + id: subsurfaceTheme + property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) + property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7) + property color accentColor: "#2d5b9a" + property color accentTextColor: "#ececec" + } Menu { id: prefsMenu -- cgit v1.2.3-70-g09d2