aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 19:09:59 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 19:09:59 +0100
commit8fad349c82b0f681d6daa95bcfe843e806b48dd7 (patch)
tree0b3be553cab538c280bcd63a510f7cc3ea318775
parent5e5c9830a48e8f9c0a376863b4fa17c7f5056af3 (diff)
downloadsubsurface-8fad349c82b0f681d6daa95bcfe843e806b48dd7.tar.gz
new container for extended theme properties
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 <sebas@kde.org>
-rw-r--r--qt-mobile/qml/main.qml25
1 files changed, 8 insertions, 17 deletions
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