on xenial help sign in
[Dash] Let scopes select there preferred background color

Let scopes select there preferred background color, If dashBackground is disabled

commit81bfe9886a7f85a8dbdeba66ee17ac4d64f1209f authorMarius Gripsgard <mariogrip@ubuntu.com> dateMon 31 Jul 2017, 22:06 (9 years ago) parentf136e64
1 file changed+1−1
plugins/Dash/ScopeStyle.qml+1−1
plugins/Dash/ScopeStyle.qml+1−1
@@ -37,7 +37,7 @@ QtObject {
3737 property var style: Object()
3838
3939 /// Color used for text and symbolic icons
40− property color foreground: gsettings.dashBackground ? "white" : d.defaultDark
40+ property color foreground: gsettings.dashBackground ? "white" : ("foreground-color" in style ? style["foreground-color"] : d.defaultDark)
4141
4242 /// Luminance of the foreground color
4343 readonly property real foregroundLuminance: foreground ? Style.luminance(foreground) : Style.luminance(d.defaultDark)