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>
This commit is contained in:
Sebastian Kügler 2015-11-29 19:09:59 +01:00
parent 5e5c9830a4
commit 8fad349c82

View file

@ -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