From 74586d792230447384967fe1765e2ed562281e8a Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Fri, 6 Nov 2015 21:52:04 +0000 Subject: Add some compatibility extensions to theme and unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 Signed-off-by: Dirk Hohndel --- 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 5c8c04b2c..e9cfb5b74 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 faf96f96f..2c51ae00f 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" - } -- cgit v1.2.3-70-g09d2