mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
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:
parent
5e5c9830a4
commit
8fad349c82
1 changed files with 8 additions and 17 deletions
|
@ -13,9 +13,6 @@ MobileComponents.ApplicationWindow {
|
||||||
property bool fullscreen: true
|
property bool fullscreen: true
|
||||||
property alias messageText: message.text
|
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 {
|
FontMetrics {
|
||||||
id: fontMetrics
|
id: fontMetrics
|
||||||
}
|
}
|
||||||
|
@ -111,20 +108,14 @@ MobileComponents.ApplicationWindow {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// MobileComponents.Units {
|
|
||||||
// id: units
|
QtObject {
|
||||||
//
|
id: subsurfaceTheme
|
||||||
// property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5)
|
property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5)
|
||||||
// property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7)
|
property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7)
|
||||||
//
|
property color accentColor: "#2d5b9a"
|
||||||
// }
|
property color accentTextColor: "#ececec"
|
||||||
//
|
}
|
||||||
// MobileComponents.Theme {
|
|
||||||
// id: theme
|
|
||||||
// /* Added for subsurface */
|
|
||||||
// property color accentColor: "#2d5b9a"
|
|
||||||
// property color accentTextColor: "#ececec"
|
|
||||||
// }
|
|
||||||
|
|
||||||
Menu {
|
Menu {
|
||||||
id: prefsMenu
|
id: prefsMenu
|
||||||
|
|
Loading…
Reference in a new issue