Merge lp:~nik90/unav/unav-convergence-part-2 into lp:unav

Proposed by costales
Status: Merged
Merged at revision: 69
Proposed branch: lp:~nik90/unav/unav-convergence-part-2
Merge into: lp:unav
Diff against target: 95 lines (+24/-2)
4 files modified
qml/Location.qml (+1/-1)
qml/Main.qml (+1/-0)
qml/components/CloseHeaderAction.qml (+1/-0)
qml/tuto/components/Walkthrough.qml (+21/-1)
To merge this branch: bzr merge lp:~nik90/unav/unav-convergence-part-2
Reviewer Review Type Date Requested Status
costales Approve
Review via email: mp+296137@code.launchpad.net

Commit message

- Adds keyboard shortcuts to the welcome wizard
- The sidebar can be closed by pressing "Escape"
- Search page can be opened by pressing "Ctrl+F"

Description of the change

As Nekhelesh said it is done and it's blocking another branches, I would like to propose it.

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

As it's a big change, I would prefer to approve and refining in the end version.
What do you think? :)

review: Approve
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

> As it's a big change, I would prefer to approve and refining in the end
> version.
> What do you think? :)

This is a small change. This MP adds very minor features and code which won't affect phone users and tablet users in any way unless they attach a keyboard. So current functionality won't be compromised or affected in any way.

I am not sure what you mean by end version. My plan was to slowly add keyboard shortcuts to improve convergence.

Revision history for this message
costales (costales) wrote :

Great :)

By end version, all together and ready for big QA from us :)

a hug!

--
Sent using Dekko from my Ubuntu device

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Location.qml'
--- qml/Location.qml 2016-05-05 19:21:33 +0000
+++ qml/Location.qml 2016-05-31 20:05:36 +0000
@@ -298,7 +298,7 @@
298 height: units.gu(2.5)298 height: units.gu(2.5)
299 width: height299 width: height
300 visible: model.icon !== ""300 visible: model.icon !== ""
301 source: model.icon301 source: model.icon ? model.icon : ""
302 SlotsLayout.position: SlotsLayout.Last302 SlotsLayout.position: SlotsLayout.Last
303 }303 }
304 }304 }
305305
=== modified file 'qml/Main.qml'
--- qml/Main.qml 2016-05-20 17:26:15 +0000
+++ qml/Main.qml 2016-05-31 20:05:36 +0000
@@ -210,6 +210,7 @@
210 Action {210 Action {
211 id: searchAction211 id: searchAction
212 iconName: "find"212 iconName: "find"
213 shortcut: "Ctrl+F"
213 text: i18n.tr("Search")214 text: i18n.tr("Search")
214 enabled: navigationPage.buttonsEnabled215 enabled: navigationPage.buttonsEnabled
215 onTriggered: {216 onTriggered: {
216217
=== modified file 'qml/components/CloseHeaderAction.qml'
--- qml/components/CloseHeaderAction.qml 2016-04-28 16:07:19 +0000
+++ qml/components/CloseHeaderAction.qml 2016-05-31 20:05:36 +0000
@@ -20,6 +20,7 @@
20 id: closeButton20 id: closeButton
21 iconName: "close"21 iconName: "close"
22 visible: mainPageStack.columns !== 122 visible: mainPageStack.columns !== 1
23 shortcut: "Escape"
23 onTriggered: {24 onTriggered: {
24 mainPageStack.hideSideBar()25 mainPageStack.hideSideBar()
25 mainPageStack.removePages(mainPageStack.primaryPage)26 mainPageStack.removePages(mainPageStack.primaryPage)
2627
=== modified file 'qml/tuto/components/Walkthrough.qml'
--- qml/tuto/components/Walkthrough.qml 2016-04-14 15:32:41 +0000
+++ qml/tuto/components/Walkthrough.qml 2016-05-31 20:05:36 +0000
@@ -31,7 +31,7 @@
31 property list<Component> model31 property list<Component> model
3232
33 // Property to set the color of bottom cirle to indicate the user's progress33 // Property to set the color of bottom cirle to indicate the user's progress
34 property color completeColor: "lightblue"34 property color completeColor: "#398DFF"
3535
36 // Property to set the color of the bottom circle to indicate the slide still left to cover36 // Property to set the color of the bottom circle to indicate the slide still left to cover
37 property color inCompleteColor: "lightgrey"37 property color inCompleteColor: "lightgrey"
@@ -98,8 +98,11 @@
98 }98 }
9999
100 MouseArea {100 MouseArea {
101 hoverEnabled: true
101 anchors.fill: parent102 anchors.fill: parent
102 onClicked: walkthrough.finished()103 onClicked: walkthrough.finished()
104 onEntered: skipLabel.color = completeColor
105 onExited: skipLabel.color = skipTextColor
103 }106 }
104 }107 }
105108
@@ -131,10 +134,21 @@
131 duration: UbuntuAnimation.FastDuration134 duration: UbuntuAnimation.FastDuration
132 }135 }
133 }136 }
137
138 MouseArea {
139 anchors.fill: parent
140 onClicked: listView.currentIndex = index
141 }
134 }142 }
135 }143 }
136 }144 }
137145
146 Keys.onRightPressed: {
147 if (listView.currentIndex !== listView.count-1) {
148 listView.currentIndex++
149 }
150 }
151
138 ActionButton {152 ActionButton {
139 id: rightchevron153 id: rightchevron
140154
@@ -152,6 +166,12 @@
152 onClicked: listView.currentIndex++166 onClicked: listView.currentIndex++
153 }167 }
154168
169 Keys.onLeftPressed: {
170 if (listView.currentIndex !== 0) {
171 listView.currentIndex--
172 }
173 }
174
155 ActionButton {175 ActionButton {
156 id: leftchevron176 id: leftchevron
157177

Subscribers

People subscribed via source and target branches