on xenial help sign in
Change the default foreground color
commit12d39f935a2c6949902dac3123ef4635bc848536 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 14 Aug 2014, 17:44 (12 years ago) parent9b3577d
2 files changed+5−5
plugins/Dash/ScopeStyle.qml+1−1 tests/plugins/Dash/tst_ScopeStyle.qml+4−4
plugins/Dash/ScopeStyle.qml+1−1
@@ -89,7 +89,7 @@ QtObject {
8989 property var d: QtObject {
9090 // FIXME: should be taken from the theme
9191 readonly property color defaultLight: "white"
92− readonly property color defaultDark: Theme.palette.normal.baseText
92+ readonly property color defaultDark: UbuntuColors.darkGrey
9393 readonly property real defaultLightLuminance: Style.luminance(defaultLight)
9494 readonly property real defaultDarkLuminance: Style.luminance(defaultDark)
9595
tests/plugins/Dash/tst_ScopeStyle.qml+4−4
@@ -52,7 +52,7 @@ Rectangle {
5252
5353 function test_foreground_data() {
5454 return [
55− { tag: "default", index: 0, foreground: Theme.palette.normal.foreground, luminance: 0.5725 },
55+ { tag: "default", index: 0, foreground: UbuntuColors.darkGrey, luminance: 0.3647 },
5656 { tag: "red on black", index: 1, foreground: "red", luminance: 0.2126 },
5757 { tag: "green on white", index: 2, foreground: "green", luminance: 0.3590 },
5858 { tag: "blue on darkgrey", index: 3, foreground: "blue", luminance: 0.0722 },
@@ -84,7 +84,7 @@ Rectangle {
8484
8585 function test_threshold_data() {
8686 return [
87− { tag: "default", index: 0, threshold: 0.7863 },
87+ { tag: "default", index: 0, threshold: 0.6824 },
8888 { tag: "red on black", index: 1, threshold: 0.1063 },
8989 { tag: "green on white", index: 2, threshold: 0.6795 },
9090 { tag: "blue on darkgrey", index: 3, threshold: 0.3675 },
@@ -113,7 +113,7 @@ Rectangle {
113113
114114 function test_dark_data() {
115115 return [
116− { tag: "default", index: 0, dark: Theme.palette.normal.baseText },
116+ { tag: "default", index: 0, dark: UbuntuColors.darkGrey },
117117 { tag: "red on black", index: 1, dark: "black" },
118118 { tag: "green on white", index: 2, dark: "green" },
119119 { tag: "blue on darkgrey", index: 3, dark: "blue" },
@@ -140,7 +140,7 @@ Rectangle {
140140
141141 function test_headerForeground_data() {
142142 return [
143− { tag: "default", index: 0, headerForeground: Theme.palette.normal.baseText },
143+ { tag: "default", index: 0, headerForeground: UbuntuColors.darkGrey },
144144 { tag: "black", index: 2, headerForeground: "black" },
145145 ];
146146 }