@@ -16,7 +16,9 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import Utils 0.1
18import Utils 0.1
19import Ubuntu.Components 1.3
20import Ubuntu.Components 1.3
21+import Ubuntu.Components.Themes 1.3
21/*! \brief Helper for processing scope customization options.
23/*! \brief Helper for processing scope customization options.
@@ -26,17 +28,22 @@ import Ubuntu.Components 1.3
32+ property var gsettings: GSettings {
33+ schema.id: "com.ubuntu.touch.system-settings"
29 /// Style object passed from the scope
36 /// Style object passed from the scope
30 property var style: Object()
37 property var style: Object()
32 /// Color used for text and symbolic icons
39 /// Color used for text and symbolic icons
33− readonly property color foreground: "foreground-color" in style ? style["foreground-color"] : d.defaultDark
40+ property color foreground: gsettings.dashBackground ? "white" : ("foreground-color" in style ? style["foreground-color"] : d.defaultDark)
35 /// Luminance of the foreground color
42 /// Luminance of the foreground color
36 readonly property real foregroundLuminance: foreground ? Style.luminance(foreground) : Style.luminance(d.defaultDark)
43 readonly property real foregroundLuminance: foreground ? Style.luminance(foreground) : Style.luminance(d.defaultDark)
38 /// Color used for the overall background
45 /// Color used for the overall background
39− readonly property color background: "background-color" in style ? style["background-color"] : "#00f5f5f5"
46+ property color background: "background-color" in style ? style["background-color"] : gsettings.dashBackground ? "transparent" : "#00f5f5f5"
41 /// Luminance of the background color
48 /// Luminance of the background color
42 readonly property real backgroundLuminance: background ? Style.luminance(background) : Style.luminance(d.defaultLight)
49 readonly property real backgroundLuminance: background ? Style.luminance(background) : Style.luminance(d.defaultLight)
@@ -58,16 +65,16 @@ QtObject {
58 readonly property url headerLogo: "logo" in d.headerStyle ? d.headerStyle["logo"] : ""
65 readonly property url headerLogo: "logo" in d.headerStyle ? d.headerStyle["logo"] : ""
60 /// Background style for the header
67 /// Background style for the header
61− readonly property url headerBackground: "background" in d.headerStyle ? d.headerStyle["background"] : "color:///#ffffff"
68+ property url headerBackground: "background" in d.headerStyle ? d.headerStyle["background"] : gsettings.dashBackground ? "color:///transparent" : "color:///#ffffff"
63 /// Foreground color for the header
70 /// Foreground color for the header
64− readonly property color headerForeground: "foreground-color" in d.headerStyle ? d.headerStyle["foreground-color"] : foreground
71+ property color headerForeground: "foreground-color" in d.headerStyle ? d.headerStyle["foreground-color"] : gsettings.dashBackground ? "white" : foreground
66 /// Color of the header divider
73 /// Color of the header divider
67− readonly property color headerDividerColor: "divider-color" in d.headerStyle ? d.headerStyle["divider-color"] : "#e0e0e0"
74+ property color headerDividerColor: "divider-color" in d.headerStyle ? d.headerStyle["divider-color"] : gsettings.dashBackground ? "transparent" : "#e0e0e0"
69 /// Background style for the navigation
76 /// Background style for the navigation
70− readonly property url navigationBackground: "navigation-background" in d.headerStyle ? d.headerStyle["navigation-background"] : "color:///#f5f5f5"
77+ property url navigationBackground: "navigation-background" in d.headerStyle ? d.headerStyle["navigation-background"] : gsettings.dashBackground ? "color:///white" : "color:///#f5f5f5"
72 /// Color of the primary preview button
79 /// Color of the primary preview button
73 readonly property color previewButtonColor: "preview-button-color" in style ? style["preview-button-color"] : theme.palette.normal.positive
80 readonly property color previewButtonColor: "preview-button-color" in style ? style["preview-button-color"] : theme.palette.normal.positive