Merge lp:~feng-kylin/unity8/AddSmallDropShadowOnText into lp:unity8

Proposed by handsome_feng
Status: Rejected
Rejected by: Albert Astals Cid
Proposed branch: lp:~feng-kylin/unity8/AddSmallDropShadowOnText
Merge into: lp:unity8
Diff against target: 415 lines (+145/-27)
10 files modified
qml/Components/DelayedLockscreen.qml (+21/-8)
qml/Components/DropShadowText.qml (+48/-0)
qml/Components/Lockscreen.qml (+10/-1)
qml/Components/PassphraseLockscreen.qml (+19/-5)
qml/Components/PinLockscreen.qml (+29/-6)
qml/Components/PinPadButton.qml (+11/-1)
qml/Greeter/Clock.qml (+3/-2)
qml/Greeter/CoverPage.qml (+1/-1)
qml/Greeter/Infographics.qml (+1/-1)
qml/Greeter/LoginList.qml (+2/-2)
To merge this branch: bzr merge lp:~feng-kylin/unity8/AddSmallDropShadowOnText
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Needs Fixing
Jouni Helminen Pending
Review via email: mp+260712@code.launchpad.net

Commit message

Added a small drop shadow on the text on the Greeter and the Lockscreens.

Description of the change

Added a small drop shadow on the text on the Greeter and the Lockscreens to keep fonts readable wherever we allow the user setting his own background image.

* Are there any related MPs required for this MP to build/function as expected? Please list.

no

 * Did you perform an exploratory manual test run of your code change and any related functionality?

yes

 * Did you make sure that your branch does not contain spurious tags?

yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

n/a

 * If you changed the UI, has there been a design review?

no

To post a comment you must log in.
Revision history for this message
Michael Zanetti (mzanetti) wrote :

There are some elements missing:

* The dots that appear when pressing a number
* The backspace button
* the close/cancel button
* The phone icon next to "Emergency call"

===

The checklist is missing

===

Also I'd like to have a review from design. I'll try to get hold of a designer.

review: Needs Fixing
1794. By handsome_feng

Added the drop shadow on the icons

Revision history for this message
handsome_feng (feng-kylin) wrote :

> There are some elements missing:
>
> * The dots that appear when pressing a number
> * The backspace button
> * the close/cancel button
> * The phone icon next to "Emergency call"
>
>
> ===
>
> The checklist is missing
>
> ===
>
> Also I'd like to have a review from design. I'll try to get hold of a
> designer.

I added the drop shadow on the missing icons, and waiting for a further design.Thank you!

Revision history for this message
Michael Zanetti (mzanetti) wrote :

Added some inline comments.

Also, please add the checklist to the description

review: Needs Fixing
1795. By handsome_feng

Modified the anchors statements

1796. By handsome_feng

merge trunk

Revision history for this message
Michael Zanetti (mzanetti) wrote :

Sorry... Jouni told me that they are trying to reduce usage of drop-shadows...

Revision history for this message
Albert Astals Cid (aacid) wrote :

Jouni should we disacard this then?

Unmerged revisions

1796. By handsome_feng

merge trunk

1795. By handsome_feng

Modified the anchors statements

1794. By handsome_feng

Added the drop shadow on the icons

1793. By handsome_feng

Add a small drop shadow on the text

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Components/DelayedLockscreen.qml'
--- qml/Components/DelayedLockscreen.qml 2015-02-12 14:48:06 +0000
+++ qml/Components/DelayedLockscreen.qml 2015-06-30 09:26:14 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtGraphicalEffects 1.0
18import Ubuntu.Components 0.119import Ubuntu.Components 0.1
19import "../Components"20import "../Components"
2021
@@ -37,7 +38,7 @@
37 anchors.verticalCenter: parent.verticalCenter38 anchors.verticalCenter: parent.verticalCenter
38 spacing: units.gu(2)39 spacing: units.gu(2)
3940
40 Label {41 DropShadowText {
41 id: deviceLockedLabel42 id: deviceLockedLabel
42 objectName: "deviceLockedLabel"43 objectName: "deviceLockedLabel"
43 anchors.left: parent.left44 anchors.left: parent.left
@@ -54,7 +55,7 @@
54 height: units.gu(1)55 height: units.gu(1)
55 }56 }
5657
57 Label {58 DropShadowText {
58 anchors.left: parent.left59 anchors.left: parent.left
59 anchors.right: parent.right60 anchors.right: parent.right
60 horizontalAlignment: Text.AlignHCenter61 horizontalAlignment: Text.AlignHCenter
@@ -65,7 +66,7 @@
65 i18n.tr("You have been locked out due to too many failed passcode attempts.")66 i18n.tr("You have been locked out due to too many failed passcode attempts.")
66 }67 }
6768
68 Label {69 DropShadowText {
69 anchors.left: parent.left70 anchors.left: parent.left
70 anchors.right: parent.right71 anchors.right: parent.right
71 horizontalAlignment: Text.AlignHCenter72 horizontalAlignment: Text.AlignHCenter
@@ -81,14 +82,26 @@
81 height: units.gu(1)82 height: units.gu(1)
82 }83 }
8384
84 Icon {85 Item {
85 // It would be nice to use a less network-specific name,
86 // but this is the only lock icon we have.
87 name: "network-secure"
88 color: "#f3f3e7"
89 height: units.gu(4)86 height: units.gu(4)
90 width: units.gu(4)87 width: units.gu(4)
91 anchors.horizontalCenter: parent.horizontalCenter88 anchors.horizontalCenter: parent.horizontalCenter
89 Icon {
90 // It would be nice to use a less network-specific name,
91 // but this is the only lock icon we have.
92 id: deviceLockedIcon
93 name: "network-secure"
94 anchors.fill: parent
95 color: "#f3f3e7"
96 }
97
98 DropShadow {
99 anchors.fill: deviceLockedIcon
100 radius: 4
101 samples: 8
102 color: "#80000000"
103 source: deviceLockedIcon
104 }
92 }105 }
93 }106 }
94}107}
95108
=== added file 'qml/Components/DropShadowText.qml'
--- qml/Components/DropShadowText.qml 1970-01-01 00:00:00 +0000
+++ qml/Components/DropShadowText.qml 2015-06-30 09:26:14 +0000
@@ -0,0 +1,48 @@
1/*
2 * Copyright (C) 2015 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17import QtQuick 2.0
18import Ubuntu.Components 1.1
19import QtGraphicalEffects 1.0
20
21Item {
22 id: root
23 property alias clip: label.clip
24 property alias color: label.color
25 property alias elide: label.elide
26 property alias font: label.font
27 property alias fontSize: label.fontSize
28 property alias text: label.text
29 property alias textFormat: label.textFormat
30 property alias wrapMode: label.wrapMode
31 property alias horizontalAlignment: label.horizontalAlignment
32 property alias verticalAlignment: label.verticalAlignment
33 implicitWidth: label.implicitWidth
34 implicitHeight: label.implicitHeight
35
36 Label {
37 id: label
38 anchors.fill: parent
39 }
40
41 DropShadow {
42 anchors.fill: label
43 radius: 4
44 samples: 8
45 color: "#80000000"
46 source: label
47 }
48}
049
=== modified file 'qml/Components/Lockscreen.qml'
--- qml/Components/Lockscreen.qml 2015-03-18 17:27:30 +0000
+++ qml/Components/Lockscreen.qml 2015-06-30 09:26:14 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtGraphicalEffects 1.0
18import Ubuntu.Components 1.019import Ubuntu.Components 1.0
19import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
20import Ubuntu.Telephony 0.1 as Telephony21import Ubuntu.Telephony 0.1 as Telephony
@@ -237,7 +238,7 @@
237 right: parent.right238 right: parent.right
238 }239 }
239240
240 Label {241 DropShadowText {
241 id: emergencyCallLabel242 id: emergencyCallLabel
242 objectName: "emergencyCallLabel"243 objectName: "emergencyCallLabel"
243 anchors.horizontalCenter: parent.horizontalCenter244 anchors.horizontalCenter: parent.horizontalCenter
@@ -256,6 +257,14 @@
256 color: root.foregroundColor257 color: root.foregroundColor
257 }258 }
258259
260 DropShadow {
261 anchors.fill: emergencyCallIcon
262 radius: 4
263 samples: 8
264 color: "#80000000"
265 source: emergencyCallIcon
266 }
267
259 MouseArea {268 MouseArea {
260 anchors.top: emergencyCallLabel.top269 anchors.top: emergencyCallLabel.top
261 anchors.bottom: emergencyCallLabel.bottom270 anchors.bottom: emergencyCallLabel.bottom
262271
=== modified file 'qml/Components/PassphraseLockscreen.qml'
--- qml/Components/PassphraseLockscreen.qml 2015-03-18 17:27:30 +0000
+++ qml/Components/PassphraseLockscreen.qml 2015-06-30 09:26:14 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtGraphicalEffects 1.0
18import Ubuntu.Components 0.119import Ubuntu.Components 0.1
19import "../Components"20import "../Components"
2021
@@ -50,7 +51,7 @@
50 width: parent.width51 width: parent.width
51 spacing: units.gu(2)52 spacing: units.gu(2)
5253
53 Label {54 DropShadowText {
54 id: infoField55 id: infoField
55 objectName: "infoTextLabel"56 objectName: "infoTextLabel"
56 fontSize: "x-large"57 fontSize: "x-large"
@@ -119,16 +120,29 @@
119120
120 Repeater {121 Repeater {
121 model: pinentryField.length122 model: pinentryField.length
122 delegate: Rectangle {123 delegate: Item {
123 color: root.foregroundColor
124 width: dotRow.dotSize124 width: dotRow.dotSize
125 height: width125 height: width
126 radius: width / 2126 Rectangle {
127 id: dotItem
128 color: root.foregroundColor
129 anchors.fill: parent
130 radius: width / 2
131 }
132
133 DropShadow {
134 anchors.fill: dotItem
135 radius: 4
136 samples: 8
137 color: "#80000000"
138 source: dotItem
139 transparentBorder: true
140 }
127 }141 }
128 }142 }
129 }143 }
130144
131 Label {145 DropShadowText {
132 id: wrongNoticeLabel146 id: wrongNoticeLabel
133 objectName: "wrongNoticeLabel"147 objectName: "wrongNoticeLabel"
134 fontSize: "large"148 fontSize: "large"
135149
=== modified file 'qml/Components/PinLockscreen.qml'
--- qml/Components/PinLockscreen.qml 2015-05-28 07:42:09 +0000
+++ qml/Components/PinLockscreen.qml 2015-06-30 09:26:14 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtGraphicalEffects 1.0
18import Ubuntu.Components 0.119import Ubuntu.Components 0.1
19import Ubuntu.Components.ListItems 0.120import Ubuntu.Components.ListItems 0.1
20import "../Components"21import "../Components"
@@ -60,7 +61,7 @@
60 width: parent.width61 width: parent.width
61 spacing: units.gu(1)62 spacing: units.gu(1)
6263
63 Label {64 DropShadowText {
64 id: infoField65 id: infoField
65 objectName: "infoTextLabel"66 objectName: "infoTextLabel"
66 fontSize: "large"67 fontSize: "large"
@@ -86,11 +87,24 @@
8687
87 Repeater {88 Repeater {
88 model: pinentryField.text.length89 model: pinentryField.text.length
89 delegate: Rectangle {90 delegate: Item {
90 color: root.foregroundColor
91 width: Math.min(units.gu(2), (pinContainer.width - pinContainer.height*2 ) / (root.maxPinLength >= 0 ? root.maxPinLength : 16))91 width: Math.min(units.gu(2), (pinContainer.width - pinContainer.height*2 ) / (root.maxPinLength >= 0 ? root.maxPinLength : 16))
92 height: width92 height: width
93 radius: width / 293 Rectangle {
94 id: pinItem
95 color: root.foregroundColor
96 anchors.fill: parent
97 radius: width / 2
98 }
99
100 DropShadow {
101 anchors.fill: pinItem
102 radius: 4
103 samples: 8
104 color: "#80000000"
105 source: pinItem
106 transparentBorder: true
107 }
94 }108 }
95 }109 }
96110
@@ -111,7 +125,7 @@
111 pinentryField.text = pinentryField.text.substring(0, pinentryField.text.length-1)125 pinentryField.text = pinentryField.text.substring(0, pinentryField.text.length-1)
112 }126 }
113 }127 }
114 Label {128 DropShadowText {
115 id: wrongNoticeLabel129 id: wrongNoticeLabel
116 objectName: "wrongNoticeLabel"130 objectName: "wrongNoticeLabel"
117 fontSize: "x-large"131 fontSize: "x-large"
@@ -130,11 +144,20 @@
130 enabled: root.entryEnabled144 enabled: root.entryEnabled
131145
132 Icon {146 Icon {
147 id: backspaceIcon
133 anchors.fill: parent148 anchors.fill: parent
134 name: "erase"149 name: "erase"
135 color: root.foregroundColor150 color: root.foregroundColor
136 }151 }
137152
153 DropShadow {
154 anchors.fill: backspaceIcon
155 radius: 4
156 samples: 8
157 color: "#80000000"
158 source: backspaceIcon
159 }
160
138 opacity: (pinentryField.text.length > 0 && !pinentryField.incorrectOverride) ? 1 : 0161 opacity: (pinentryField.text.length > 0 && !pinentryField.incorrectOverride) ? 1 : 0
139162
140 Behavior on opacity {163 Behavior on opacity {
@@ -145,7 +168,7 @@
145 }168 }
146 }169 }
147170
148 Label {171 DropShadowText {
149 objectName: "retryLabel"172 objectName: "retryLabel"
150 fontSize: "x-small"173 fontSize: "x-small"
151 color: root.foregroundColor174 color: root.foregroundColor
152175
=== modified file 'qml/Components/PinPadButton.qml'
--- qml/Components/PinPadButton.qml 2015-03-18 17:27:30 +0000
+++ qml/Components/PinPadButton.qml 2015-06-30 09:26:14 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtGraphicalEffects 1.0
18import Ubuntu.Components 1.119import Ubuntu.Components 1.1
1920
20AbstractButton {21AbstractButton {
@@ -33,7 +34,7 @@
33 }34 }
34 }35 }
3536
36 Label {37 DropShadowText {
37 id: label38 id: label
38 anchors.centerIn: parent39 anchors.centerIn: parent
39 horizontalAlignment: Text.AlignHCenter40 horizontalAlignment: Text.AlignHCenter
@@ -60,4 +61,13 @@
60 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }61 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }
61 }62 }
62 }63 }
64
65 DropShadow {
66 anchors.fill: icon
67 radius: 4
68 samples: 8
69 color: "#80000000"
70 visible: icon.visible
71 source: icon
72 }
63}73}
6474
=== modified file 'qml/Greeter/Clock.qml'
--- qml/Greeter/Clock.qml 2014-12-11 14:10:18 +0000
+++ qml/Greeter/Clock.qml 2015-06-30 09:26:14 +0000
@@ -17,6 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 0.1
19import "../Panel/Indicators"19import "../Panel/Indicators"
20import "../Components"
20import Unity.Indicators 0.1 as Indicators21import Unity.Indicators 0.1 as Indicators
2122
22Item {23Item {
@@ -66,7 +67,7 @@
66 Column {67 Column {
67 spacing: units.gu(0.5)68 spacing: units.gu(0.5)
6869
69 Label {70 DropShadowText {
70 id: timeLabel71 id: timeLabel
71 objectName: "timeLabel"72 objectName: "timeLabel"
7273
@@ -78,7 +79,7 @@
78 font.weight: Font.Light79 font.weight: Font.Light
79 }80 }
8081
81 Label {82 DropShadowText {
82 id: dateLabel83 id: dateLabel
83 objectName: "dateLabel"84 objectName: "dateLabel"
8485
8586
=== modified file 'qml/Greeter/CoverPage.qml'
--- qml/Greeter/CoverPage.qml 2015-05-11 14:36:03 +0000
+++ qml/Greeter/CoverPage.qml 2015-06-30 09:26:14 +0000
@@ -97,7 +97,7 @@
97 }97 }
98 }98 }
9999
100 Label {100 DropShadowText {
101 id: swipeHint101 id: swipeHint
102 property real baseOpacity: 0.5102 property real baseOpacity: 0.5
103 opacity: 0.0103 opacity: 0.0
104104
=== modified file 'qml/Greeter/Infographics.qml'
--- qml/Greeter/Infographics.qml 2015-02-12 14:48:06 +0000
+++ qml/Greeter/Infographics.qml 2015-06-30 09:26:14 +0000
@@ -356,7 +356,7 @@
356 }356 }
357 }357 }
358358
359 Label {359 DropShadowText {
360 id: notification360 id: notification
361 objectName: "label"361 objectName: "label"
362362
363363
=== modified file 'qml/Greeter/LoginList.qml'
--- qml/Greeter/LoginList.qml 2015-02-01 19:53:29 +0000
+++ qml/Greeter/LoginList.qml 2015-06-30 09:26:14 +0000
@@ -150,7 +150,7 @@
150 return 1 - Math.min(1, (Math.abs(highlightDist) + root.cellHeight) / ((root.numAboveBelow + 1) * root.cellHeight))150 return 1 - Math.min(1, (Math.abs(highlightDist) + root.cellHeight) / ((root.numAboveBelow + 1) * root.cellHeight))
151 }151 }
152152
153 Label {153 DropShadowText {
154 objectName: "username" + index154 objectName: "username" + index
155155
156 anchors {156 anchors {
@@ -195,7 +195,7 @@
195 }195 }
196 }196 }
197197
198 Label {198 DropShadowText {
199 id: infoLabel199 id: infoLabel
200 objectName: "infoLabel"200 objectName: "infoLabel"
201 anchors {201 anchors {

Subscribers

People subscribed via source and target branches