From 2b649a7da1980975117fd79769251cc433cebf1e Mon Sep 17 00:00:00 2001 From: Sami Nurmenniemi Date: Mon, 23 Oct 2017 13:30:05 +0300 Subject: Move theme color definitions to one place Task-number: QTBUG-60084 Change-Id: Ie80c9ebc26bd7925c7f0f67404878818675c0f06 Reviewed-by: Kari Oikarinen Reviewed-by: Teemu Holappa --- src/settingsui/settingsuiplugin/SettingsDelegate.qml | 4 ++-- src/settingsui/settingsuiplugin/ShutdownPopup.qml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/settingsui/settingsuiplugin') diff --git a/src/settingsui/settingsuiplugin/SettingsDelegate.qml b/src/settingsui/settingsuiplugin/SettingsDelegate.qml index abb864e..91f4ca4 100644 --- a/src/settingsui/settingsuiplugin/SettingsDelegate.qml +++ b/src/settingsui/settingsuiplugin/SettingsDelegate.qml @@ -52,7 +52,7 @@ Item { source: img anchors.fill: img visible: parent.isSelected ? true : false - color: "#41cd52" + color: viewSettings.buttonGreenColor } Text { @@ -65,7 +65,7 @@ Item { fontSizeMode: Text.Fit minimumPixelSize: 1 font.pixelSize: Math.min(parent.width * 0.25, parent.height) - color: parent.isSelected ? "#41cd52" : "white" + color: parent.isSelected ? viewSettings.buttonGreenColor : "white" wrapMode: Text.WordWrap verticalAlignment: Text.AlignVCenter font.family: appFont diff --git a/src/settingsui/settingsuiplugin/ShutdownPopup.qml b/src/settingsui/settingsuiplugin/ShutdownPopup.qml index b1ce3e4..1ce4480 100644 --- a/src/settingsui/settingsuiplugin/ShutdownPopup.qml +++ b/src/settingsui/settingsuiplugin/ShutdownPopup.qml @@ -32,7 +32,7 @@ Rectangle { id: shutdownPopup width: parent.width height: parent.height - color: "#09102b" + color: viewSettings.backgroundColor opacity: 0.9 signal accepted() @@ -60,8 +60,8 @@ Rectangle { Rectangle { id: frame - color: "#09102b" - border.color: "#9d9faa" + color: viewSettings.backgroundColor + border.color: viewSettings.borderColor border.width: 3 anchors.centerIn: parent width: parent.width * 0.35 -- cgit v1.2.3