[PATCH 04/11] Add some compatibility extensions to theme and unit
Sebastian Kügler
sebas at kde.org
Fri Nov 6 13:52:04 PST 2015
- This allows us to use these new things without changing much in our
own code, things now work again.
Signed-off-by: Sebastian Kügler <sebas at kde.org>
---
qt-mobile/main.qml | 4 ++++
qt-mobile/theme/Theme.qml | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index 5c8c04b..e9cfb5b 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -17,10 +17,14 @@ ApplicationWindow {
Theme.Units {
id: units
+ property int spacing: Math.ceil(gridUnit / 3)
}
Theme.Theme {
id: theme
+ /* Added for subsurface */
+ property color accentColor: "#2d5b9a"
+ property color accentTextColor: "#ececec"
}
Menu {
diff --git a/qt-mobile/theme/Theme.qml b/qt-mobile/theme/Theme.qml
index 672bc5f..79aa455 100644
--- a/qt-mobile/theme/Theme.qml
+++ b/qt-mobile/theme/Theme.qml
@@ -54,5 +54,4 @@ QtObject {
property color complementaryBackgroundColor: Qt.rgba(0,0,0, 0.54)
property color complementaryHoverColor: "#2196F3"
property color complementaryFocusColor: "#2196F3"
-
}
--
2.6.2
More information about the subsurface
mailing list