Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/blueCursor into lp:ubuntu-ui-toolkit/staging
- blueCursor
- Merge into staging
Status: | Merged |
---|---|
Approved by: | Zsombor Egri |
Approved revision: | 1140 |
Merged at revision: | 1147 |
Proposed branch: | lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/blueCursor |
Merge into: | lp:ubuntu-ui-toolkit/staging |
Prerequisite: | lp:~tpeeters/ubuntu-ui-toolkit/NewColors |
Diff against target: |
214 lines (+30/-22) 10 files modified
components.api (+1/-0) modules/Ubuntu/Components/TextArea.qml (+1/-1) modules/Ubuntu/Components/TextField.qml (+1/-1) modules/Ubuntu/Components/Themes/Ambiance/Palette.qml (+10/-8) modules/Ubuntu/Components/Themes/Ambiance/TextCursorStyle.qml (+2/-2) modules/Ubuntu/Components/Themes/Ambiance/TextSelectionEndCursorStyle.qml (+1/-1) modules/Ubuntu/Components/Themes/Ambiance/TextSelectionStartCursorStyle.qml (+3/-2) modules/Ubuntu/Components/Themes/PaletteValues.qml (+4/-0) modules/Ubuntu/Components/Themes/SuruDark/Palette.qml (+4/-2) tests/unit_x11/tst_components/tst_textinput_touch.qml (+3/-5) |
To merge this branch: | bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/blueCursor |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Zsombor Egri | Approve | ||
Review via email: mp+226457@code.launchpad.net |
This proposal supersedes a proposal from 2014-07-11.
Commit message
Update selection and cursor to blue
Description of the change
Update selection and cursor to blue
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
Cris Dywan (kalikiana) wrote : Posted in a previous version of this proposal | # |
FAIL! : components:
Loc: [/tmp/buildd/
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:1131
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Cris Dywan (kalikiana) wrote : Posted in a previous version of this proposal | # |
FAIL! : components:
Loc: [/tmp/buildd/
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal | # |
> FAIL! :
> components:
> 'wait for signal pressAndHold' returned FALSE. ()
> Loc: [/tmp/buildd/
> 699+autopilot0/
There was a bug in the test, see it fixed in https:/
Cris Dywan (kalikiana) wrote : Posted in a previous version of this proposal | # |
It's conflicting with https:/
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal | # |
You are missing the TextField changes!
Some small comments inline
Zsombor Egri (zsombi) wrote : | # |
Looks brilliant now :) Thank you!!
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
PASSED: Continuous integration, rev:1132
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1135
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1137
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1138
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Cris Dywan (kalikiana) wrote : | # |
NoSuchProcess: no process found with pid 3788
See bug 1329141
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
- 1140. By Cris Dywan
-
Slightly thicker caret
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1140
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'components.api' |
2 | --- components.api 2014-07-15 10:32:34 +0000 |
3 | +++ components.api 2014-07-18 07:21:02 +0000 |
4 | @@ -629,6 +629,7 @@ |
5 | property color overlayText |
6 | property color field |
7 | property color fieldText |
8 | + property color selection |
9 | ToolbarButton 0.1 1.0 |
10 | ActionItem |
11 | ToolbarItems 0.1 1.0 |
12 | |
13 | === modified file 'modules/Ubuntu/Components/TextArea.qml' |
14 | --- modules/Ubuntu/Components/TextArea.qml 2014-06-28 17:26:49 +0000 |
15 | +++ modules/Ubuntu/Components/TextArea.qml 2014-07-18 07:21:02 +0000 |
16 | @@ -850,7 +850,7 @@ |
17 | } |
18 | color: control.__styleInstance.color |
19 | selectedTextColor: Theme.palette.selected.foregroundText |
20 | - selectionColor: Theme.palette.selected.foreground |
21 | + selectionColor: Theme.palette.selected.selection |
22 | font.pixelSize: FontUtils.sizeToPixels("medium") |
23 | // forward keys to the root element so it can be captured outside of it |
24 | // as well as to InputHandler to handle PageUp/PageDown keys |
25 | |
26 | === modified file 'modules/Ubuntu/Components/TextField.qml' |
27 | --- modules/Ubuntu/Components/TextField.qml 2014-06-29 21:46:30 +0000 |
28 | +++ modules/Ubuntu/Components/TextField.qml 2014-07-18 07:21:02 +0000 |
29 | @@ -979,7 +979,7 @@ |
30 | } |
31 | color: control.__styleInstance.color |
32 | selectedTextColor: Theme.palette.selected.foregroundText |
33 | - selectionColor: Theme.palette.selected.foreground |
34 | + selectionColor: Theme.palette.selected.selection |
35 | font.pixelSize: FontUtils.sizeToPixels("medium") |
36 | passwordCharacter: "\u2022" |
37 | // forward keys to the root element so it can be captured outside of it |
38 | |
39 | === modified file 'modules/Ubuntu/Components/Themes/Ambiance/Palette.qml' |
40 | --- modules/Ubuntu/Components/Themes/Ambiance/Palette.qml 2013-07-05 12:21:32 +0000 |
41 | +++ modules/Ubuntu/Components/Themes/Ambiance/Palette.qml 2014-07-18 07:21:02 +0000 |
42 | @@ -15,6 +15,7 @@ |
43 | */ |
44 | |
45 | import QtQuick 2.0 |
46 | +import Ubuntu.Components 1.1 |
47 | import Ubuntu.Components.Themes 0.1 |
48 | |
49 | Palette { |
50 | @@ -22,13 +23,13 @@ |
51 | background: "#EDEDED" |
52 | backgroundText: "#81888888" |
53 | base: "#1A000000" |
54 | - baseText: "#888888" |
55 | - foreground: "#888888" |
56 | + baseText: UbuntuColors.lightGrey |
57 | + foreground: UbuntuColors.lightGrey |
58 | foregroundText: "#F3F3E7" |
59 | overlay: "#FDFDFD" |
60 | - overlayText: "#888888" |
61 | + overlayText: UbuntuColors.lightGrey |
62 | field: "#1A000000" |
63 | - fieldText: "#888888" |
64 | + fieldText: UbuntuColors.darkGrey |
65 | } |
66 | selected: PaletteValues { |
67 | /* FIXME: 'background' does not come from design |
68 | @@ -36,10 +37,11 @@ |
69 | that will go away with the new design. |
70 | */ |
71 | background: "#B2E6E6E6" |
72 | - backgroundText: "#888888" |
73 | - foreground: "#DD4814" |
74 | - foregroundText: "#F3F3E7" |
75 | + backgroundText: UbuntuColors.darkGrey |
76 | + selection: Qt.rgba(UbuntuColors.blue.r, UbuntuColors.blue.g, UbuntuColors.blue.b, 0.2) |
77 | + foreground: UbuntuColors.blue |
78 | + foregroundText: UbuntuColors.darkGrey |
79 | field: "#FFFFFF" |
80 | - fieldText: "#888888" |
81 | + fieldText: UbuntuColors.darkGrey |
82 | } |
83 | } |
84 | |
85 | === modified file 'modules/Ubuntu/Components/Themes/Ambiance/TextCursorStyle.qml' |
86 | --- modules/Ubuntu/Components/Themes/Ambiance/TextCursorStyle.qml 2014-05-09 05:25:12 +0000 |
87 | +++ modules/Ubuntu/Components/Themes/Ambiance/TextCursorStyle.qml 2014-07-18 07:21:02 +0000 |
88 | @@ -47,7 +47,7 @@ |
89 | Component { |
90 | id: delegate |
91 | Rectangle { |
92 | - width: units.dp(1) |
93 | + width: units.dp(2) |
94 | color: Theme.palette.selected.foreground |
95 | visible: blinkTimer.timerShowCursor |
96 | Timer { |
97 | @@ -70,7 +70,7 @@ |
98 | // caretItem |
99 | Image { |
100 | id: caretItem |
101 | - source: "artwork/teardrop-left.png" |
102 | + source: "artwork/caret_noshadow.png" |
103 | anchors { |
104 | top: parent.bottom |
105 | horizontalCenter: parent.horizontalCenter |
106 | |
107 | === modified file 'modules/Ubuntu/Components/Themes/Ambiance/TextSelectionEndCursorStyle.qml' |
108 | --- modules/Ubuntu/Components/Themes/Ambiance/TextSelectionEndCursorStyle.qml 2014-05-09 05:25:12 +0000 |
109 | +++ modules/Ubuntu/Components/Themes/Ambiance/TextSelectionEndCursorStyle.qml 2014-07-18 07:21:02 +0000 |
110 | @@ -55,7 +55,7 @@ |
111 | // caretItem |
112 | Image { |
113 | id: caretItem |
114 | - source: "artwork/teardrop-left.png" |
115 | + source: "artwork/caret_noshadow.png" |
116 | anchors { |
117 | top: parent.bottom |
118 | horizontalCenter: parent.horizontalCenter |
119 | |
120 | === modified file 'modules/Ubuntu/Components/Themes/Ambiance/TextSelectionStartCursorStyle.qml' |
121 | --- modules/Ubuntu/Components/Themes/Ambiance/TextSelectionStartCursorStyle.qml 2014-05-13 08:00:18 +0000 |
122 | +++ modules/Ubuntu/Components/Themes/Ambiance/TextSelectionStartCursorStyle.qml 2014-07-18 07:21:02 +0000 |
123 | @@ -55,12 +55,13 @@ |
124 | // caretItem |
125 | Image { |
126 | id: caretItem |
127 | - source: "artwork/teardrop-right.png" |
128 | + source: "artwork/caret_noshadow.png" |
129 | anchors { |
130 | - top: parent.bottom |
131 | + bottom: parent.top |
132 | horizontalCenter: parent.horizontalCenter |
133 | topMargin: -units.gu(0.5) |
134 | horizontalCenterOffset: LayoutMirroring.enabled ? -(units.gu(0.7) - caretItem.width) : -units.gu(0.7) |
135 | } |
136 | + rotation: 180 |
137 | } |
138 | } |
139 | |
140 | === added file 'modules/Ubuntu/Components/Themes/Ambiance/artwork/caret_noshadow@27.png' |
141 | Binary files modules/Ubuntu/Components/Themes/Ambiance/artwork/caret_noshadow@27.png 1970-01-01 00:00:00 +0000 and modules/Ubuntu/Components/Themes/Ambiance/artwork/caret_noshadow@27.png 2014-07-18 07:21:02 +0000 differ |
142 | === removed file 'modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-left@20.png' |
143 | Binary files modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-left@20.png 2014-04-25 08:18:46 +0000 and modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-left@20.png 1970-01-01 00:00:00 +0000 differ |
144 | === removed file 'modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-right@20.png' |
145 | Binary files modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-right@20.png 2014-04-25 08:18:46 +0000 and modules/Ubuntu/Components/Themes/Ambiance/artwork/teardrop-right@20.png 1970-01-01 00:00:00 +0000 differ |
146 | === modified file 'modules/Ubuntu/Components/Themes/PaletteValues.qml' |
147 | --- modules/Ubuntu/Components/Themes/PaletteValues.qml 2013-07-05 16:04:07 +0000 |
148 | +++ modules/Ubuntu/Components/Themes/PaletteValues.qml 2014-07-18 07:21:02 +0000 |
149 | @@ -69,4 +69,8 @@ |
150 | Typically used for labels and images. |
151 | */ |
152 | property color fieldText |
153 | + /*! |
154 | + Color applied to selected text in editable components. |
155 | + */ |
156 | + property color selection |
157 | } |
158 | |
159 | === modified file 'modules/Ubuntu/Components/Themes/SuruDark/Palette.qml' |
160 | --- modules/Ubuntu/Components/Themes/SuruDark/Palette.qml 2013-07-05 14:34:00 +0000 |
161 | +++ modules/Ubuntu/Components/Themes/SuruDark/Palette.qml 2014-07-18 07:21:02 +0000 |
162 | @@ -15,6 +15,7 @@ |
163 | */ |
164 | |
165 | import QtQuick 2.0 |
166 | +import Ubuntu.Components 1.1 |
167 | import Ubuntu.Components.Themes 0.1 |
168 | |
169 | Palette { |
170 | @@ -33,8 +34,9 @@ |
171 | selected: PaletteValues { |
172 | background: "#88D6D6D6" // FIXME: not from design |
173 | backgroundText: "#F3F3E7" |
174 | - foreground: "#DD4814" |
175 | - foregroundText: "#F3F3E7" |
176 | + selection: Qt.rgba(UbuntuColors.blue.r, UbuntuColors.blue.g, UbuntuColors.blue.b, 0.2) |
177 | + foreground: UbuntuColors.blue |
178 | + foregroundText: UbuntuColors.darkGrey |
179 | field: "#FFFFFF" |
180 | fieldText: "#888888" |
181 | } |
182 | |
183 | === modified file 'tests/unit_x11/tst_components/tst_textinput_touch.qml' |
184 | --- tests/unit_x11/tst_components/tst_textinput_touch.qml 2014-06-24 08:42:47 +0000 |
185 | +++ tests/unit_x11/tst_components/tst_textinput_touch.qml 2014-07-18 07:21:02 +0000 |
186 | @@ -192,15 +192,15 @@ |
187 | verify(selectedText !== "", "No text selected!"); |
188 | |
189 | popupSpy.target = findChild(data.input, "input_handler"); |
190 | - TestExtras.touchLongPress(0, data.input, guPoint(1, 1)); |
191 | + TestExtras.touchLongPress(0, data.input, guPoint(2, 2)); |
192 | waitForRendering(data.input, 500); |
193 | popupSpy.wait(); |
194 | compare(data.input.selectedText, selectedText, "Text selection should be the same!"); |
195 | |
196 | // cleanup |
197 | - TestExtras.touchRelease(0, data.input, guPoint(1, 1)); |
198 | + TestExtras.touchRelease(0, data.input, guPoint(2, 2)); |
199 | // dismiss popover |
200 | - TestExtras.touchClick(0, testMain, 0, 0); |
201 | + TestExtras.touchClick(0, testMain, guPoint(0, 0)); |
202 | } |
203 | |
204 | function test_drag_cursor_handler_data() { |
205 | @@ -275,9 +275,7 @@ |
206 | flickerSpy.target = outerFlicker; |
207 | autoSizeTextArea.focus = data.focused; |
208 | var editor = findChild(autoSizeTextArea, "text_input"); |
209 | - wait(5000) |
210 | TestExtras.touchDrag(0, editor, guPoint(0, 0), guPoint(0, 40)); |
211 | - wait(5000) |
212 | flickerSpy.wait(); |
213 | } |
214 | } |
FAILED: Continuous integration, rev:1130 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/537/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- utopic- touch/1465 jenkins. qa.ubuntu. com/job/ generic- mediumtests- utopic/ 1261/console jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- utopic- amd64-ci/ 369/console jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- utopic- armhf-ci/ 369 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- utopic- armhf-ci/ 369/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- utopic- i386-ci/ 369/console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- mako/1752 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/2432 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/2432/ artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 9158 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- amd64/1409/ console
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/537/ rebuild
http://