Merge lp:~ahayzen/music-app/remix-small-toolbar-always-show into lp:music-app/remix
- remix-small-toolbar-always-show
- Merge into remix
Status: | Merged |
---|---|
Approved by: | Victor Thompson |
Approved revision: | 644 |
Merged at revision: | 646 |
Proposed branch: | lp:~ahayzen/music-app/remix-small-toolbar-always-show |
Merge into: | lp:music-app/remix |
Prerequisite: | lp:~ahayzen/music-app/remix-small-toolbar-design |
Diff against target: |
485 lines (+60/-164) 11 files modified
MusicArtists.qml (+3/-2) MusicNowPlaying.qml (+3/-10) MusicPlaylists.qml (+3/-2) MusicSettings.qml (+0/-11) MusicToolbar.qml (+43/-114) MusicTracks.qml (+3/-2) MusicaddtoPlaylist.qml (+0/-1) common/AlbumsPage.qml (+0/-2) common/MusicPage.qml (+4/-0) common/SongsPage.qml (+0/-2) music-app.qml (+1/-18) |
To merge this branch: | bzr merge lp:~ahayzen/music-app/remix-small-toolbar-always-show |
Related bugs: | |
Related blueprints: |
Music Remix for RTM
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Thompson | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email: mp+236544@code.launchpad.net |
Commit message
* Fix the toolbar so it is always shown
* Move progress bar to the bottom of the toolbar
Description of the change
* Fix the toolbar so it is always shown
* Move progress bar to the bottom of the toolbar
This fixes the toolbar so that it is always shown and sets the bottom margin of MusicPage to the height of the toolbar (so you can scroll to the bottom).
Note that this makes the "larger" toolbar always visible in the now playing page and this will be changed when we start work on the new now playing design.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
- 643. By Andrew Hayzen
-
* Merge from lp:~andrew-hayzen/music-app/remix-small-toolbar-design
- 644. By Andrew Hayzen
-
* Switch progress bar position
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:644
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Victor Thompson (vthompson) wrote : | # |
1) It seems like attempting to swipe or drag the toolbar causes it to think it was clicked or tapped. Could we make it ignore drags/swipes?
2. I think the progress bar would look nicer if it started at the right of the image and was maybe 2 or 2.5 times as thick. Need to check with design.
Otherwise this looks great!
Victor Thompson (vthompson) wrote : | # |
In lieu of not having design feedback yet on the changes I've proposed, I'm apt to approve this so that we can get it into the app.
There are so obvious testing clean up for showing the toolbar that should be done, but we can make sure we audit that at a later time.
Preview Diff
1 | === modified file 'MusicArtists.qml' | |||
2 | --- MusicArtists.qml 2014-09-20 15:41:33 +0000 | |||
3 | +++ MusicArtists.qml 2014-10-01 21:09:08 +0000 | |||
4 | @@ -38,8 +38,9 @@ | |||
5 | 38 | 38 | ||
6 | 39 | ListView { | 39 | ListView { |
7 | 40 | id: artistlist | 40 | id: artistlist |
10 | 41 | anchors.fill: parent | 41 | anchors { |
11 | 42 | anchors.bottomMargin: musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | 42 | fill: parent |
12 | 43 | } | ||
13 | 43 | model: ArtistsModel { | 44 | model: ArtistsModel { |
14 | 44 | id: artistsModel | 45 | id: artistsModel |
15 | 45 | albumArtists: true | 46 | albumArtists: true |
16 | 46 | 47 | ||
17 | === modified file 'MusicNowPlaying.qml' | |||
18 | --- MusicNowPlaying.qml 2014-10-01 21:09:08 +0000 | |||
19 | +++ MusicNowPlaying.qml 2014-10-01 21:09:08 +0000 | |||
20 | @@ -44,10 +44,6 @@ | |||
21 | 44 | } | 44 | } |
22 | 45 | } | 45 | } |
23 | 46 | 46 | ||
24 | 47 | Component.onCompleted: { | ||
25 | 48 | onToolbarShownChanged.connect(jumpToCurrent) | ||
26 | 49 | } | ||
27 | 50 | |||
28 | 51 | Connections { | 47 | Connections { |
29 | 52 | target: player | 48 | target: player |
30 | 53 | onCurrentIndexChanged: { | 49 | onCurrentIndexChanged: { |
31 | @@ -83,8 +79,9 @@ | |||
32 | 83 | ListView { | 79 | ListView { |
33 | 84 | id: queuelist | 80 | id: queuelist |
34 | 85 | objectName: "nowPlayingQueueList" | 81 | objectName: "nowPlayingQueueList" |
37 | 86 | anchors.fill: parent | 82 | anchors { |
38 | 87 | anchors.bottomMargin: musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | 83 | fill: parent |
39 | 84 | } | ||
40 | 88 | delegate: queueDelegate | 85 | delegate: queueDelegate |
41 | 89 | model: trackQueue.model | 86 | model: trackQueue.model |
42 | 90 | highlightFollowsCurrentItem: false | 87 | highlightFollowsCurrentItem: false |
43 | @@ -117,10 +114,6 @@ | |||
44 | 117 | customdebug("Queue: Now has: " + queuelist.count + " tracks") | 114 | customdebug("Queue: Now has: " + queuelist.count + " tracks") |
45 | 118 | } | 115 | } |
46 | 119 | 116 | ||
47 | 120 | onMovementStarted: { | ||
48 | 121 | musicToolbar.hideToolbar(); | ||
49 | 122 | } | ||
50 | 123 | |||
51 | 124 | Component { | 117 | Component { |
52 | 125 | id: queueDelegate | 118 | id: queueDelegate |
53 | 126 | ListItemWithActions { | 119 | ListItemWithActions { |
54 | 127 | 120 | ||
55 | === modified file 'MusicPlaylists.qml' | |||
56 | --- MusicPlaylists.qml 2014-09-20 10:50:45 +0000 | |||
57 | +++ MusicPlaylists.qml 2014-10-01 21:09:08 +0000 | |||
58 | @@ -116,8 +116,9 @@ | |||
59 | 116 | ListView { | 116 | ListView { |
60 | 117 | id: playlistslist | 117 | id: playlistslist |
61 | 118 | objectName: "playlistsListView" | 118 | objectName: "playlistsListView" |
64 | 119 | anchors.fill: parent | 119 | anchors { |
65 | 120 | anchors.bottomMargin: musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | 120 | fill: parent |
66 | 121 | } | ||
67 | 121 | model: playlistModel.model | 122 | model: playlistModel.model |
68 | 122 | delegate: playlistDelegate | 123 | delegate: playlistDelegate |
69 | 123 | onCountChanged: { | 124 | onCountChanged: { |
70 | 124 | 125 | ||
71 | === modified file 'MusicSettings.qml' | |||
72 | --- MusicSettings.qml 2014-09-20 10:50:45 +0000 | |||
73 | +++ MusicSettings.qml 2014-10-01 21:09:08 +0000 | |||
74 | @@ -30,17 +30,6 @@ | |||
75 | 30 | title: i18n.tr("Settings") | 30 | title: i18n.tr("Settings") |
76 | 31 | contentsHeight: parent.height; | 31 | contentsHeight: parent.height; |
77 | 32 | 32 | ||
78 | 33 | onVisibleChanged: { | ||
79 | 34 | if (visible === true) | ||
80 | 35 | { | ||
81 | 36 | musicToolbar.disableToolbar() | ||
82 | 37 | } | ||
83 | 38 | else | ||
84 | 39 | { | ||
85 | 40 | musicToolbar.enableToolbar() | ||
86 | 41 | } | ||
87 | 42 | } | ||
88 | 43 | |||
89 | 44 | onCancelClicked: PopupUtils.close(musicSettings) | 33 | onCancelClicked: PopupUtils.close(musicSettings) |
90 | 45 | onConfirmClicked: { | 34 | onConfirmClicked: { |
91 | 46 | PopupUtils.close(musicSettings) | 35 | PopupUtils.close(musicSettings) |
92 | 47 | 36 | ||
93 | === modified file 'MusicToolbar.qml' | |||
94 | --- MusicToolbar.qml 2014-10-01 21:09:08 +0000 | |||
95 | +++ MusicToolbar.qml 2014-10-01 21:09:08 +0000 | |||
96 | @@ -43,7 +43,6 @@ | |||
97 | 43 | property int transitionDuration: 100 | 43 | property int transitionDuration: 100 |
98 | 44 | 44 | ||
99 | 45 | property alias currentHeight: musicToolbarPanel.height | 45 | property alias currentHeight: musicToolbarPanel.height |
100 | 46 | property alias minimizedHeight: musicToolbarPanel.minimizedHeight | ||
101 | 47 | property alias expandedHeight: musicToolbarPanel.expandedHeight | 46 | property alias expandedHeight: musicToolbarPanel.expandedHeight |
102 | 48 | property alias fullHeight: musicToolbarPanel.fullHeight | 47 | property alias fullHeight: musicToolbarPanel.fullHeight |
103 | 49 | property alias mouseAreaOffset: musicToolbarPanel.hintSize | 48 | property alias mouseAreaOffset: musicToolbarPanel.hintSize |
104 | @@ -72,22 +71,6 @@ | |||
105 | 72 | 71 | ||
106 | 73 | /* Helper functions */ | 72 | /* Helper functions */ |
107 | 74 | 73 | ||
108 | 75 | // Disable the toolbar for this page/view (eg a dialog) | ||
109 | 76 | function disableToolbar() | ||
110 | 77 | { | ||
111 | 78 | cachedStates.push(state); | ||
112 | 79 | musicToolbarPanel.state = "hidden"; | ||
113 | 80 | } | ||
114 | 81 | |||
115 | 82 | // Enable the toolbar (run when closing a page that disabled it) | ||
116 | 83 | function enableToolbar() | ||
117 | 84 | { | ||
118 | 85 | if (cachedStates.length > 0) | ||
119 | 86 | { | ||
120 | 87 | musicToolbarPanel.state = cachedStates.pop(); | ||
121 | 88 | } | ||
122 | 89 | } | ||
123 | 90 | |||
124 | 91 | // Back button has been pressed, jump up pageStack or back to parent page | 74 | // Back button has been pressed, jump up pageStack or back to parent page |
125 | 92 | function goBack() | 75 | function goBack() |
126 | 93 | { | 76 | { |
127 | @@ -98,18 +81,6 @@ | |||
128 | 98 | else if (mainPageStack !== null && mainPageStack.depth > 1) { | 81 | else if (mainPageStack !== null && mainPageStack.depth > 1) { |
129 | 99 | mainPageStack.pop(currentPage) | 82 | mainPageStack.pop(currentPage) |
130 | 100 | } | 83 | } |
131 | 101 | |||
132 | 102 | startAutohideTimer() | ||
133 | 103 | } | ||
134 | 104 | |||
135 | 105 | // Hide the toolbar | ||
136 | 106 | function hideToolbar() | ||
137 | 107 | { | ||
138 | 108 | if (!wideAspect) { | ||
139 | 109 | musicToolbarPanel.close(); | ||
140 | 110 | } | ||
141 | 111 | |||
142 | 112 | toolbarAutoHideTimer.stop(); // cancel any autohide | ||
143 | 113 | } | 84 | } |
144 | 114 | 85 | ||
145 | 115 | // Remove sheet as it has been closed | 86 | // Remove sheet as it has been closed |
146 | @@ -135,32 +106,6 @@ | |||
147 | 135 | currentSheet.push(sheet) | 106 | currentSheet.push(sheet) |
148 | 136 | } | 107 | } |
149 | 137 | 108 | ||
150 | 138 | // Show the toolbar | ||
151 | 139 | function showToolbar() | ||
152 | 140 | { | ||
153 | 141 | startAutohideTimer(); // always attempt to autohide toolbar | ||
154 | 142 | |||
155 | 143 | if (!musicToolbarPanel.opened) { | ||
156 | 144 | musicToolbarPanel.open(); | ||
157 | 145 | } | ||
158 | 146 | } | ||
159 | 147 | |||
160 | 148 | // Start the autohidetimer | ||
161 | 149 | function startAutohideTimer() | ||
162 | 150 | { | ||
163 | 151 | toolbarAutoHideTimer.restart(); | ||
164 | 152 | } | ||
165 | 153 | |||
166 | 154 | Connections { | ||
167 | 155 | target: mainView | ||
168 | 156 | onWideAspectChanged: { | ||
169 | 157 | // Force toolbar to show if in wideAspect | ||
170 | 158 | if (wideAspect && !opened) { | ||
171 | 159 | showToolbar(); | ||
172 | 160 | } | ||
173 | 161 | } | ||
174 | 162 | } | ||
175 | 163 | |||
176 | 164 | Panel { | 109 | Panel { |
177 | 165 | id: musicToolbarPanel | 110 | id: musicToolbarPanel |
178 | 166 | anchors { | 111 | anchors { |
179 | @@ -169,31 +114,21 @@ | |||
180 | 169 | bottom: parent.bottom | 114 | bottom: parent.bottom |
181 | 170 | } | 115 | } |
182 | 171 | height: currentMode === "full" ? fullHeight : expandedHeight | 116 | height: currentMode === "full" ? fullHeight : expandedHeight |
186 | 172 | locked: wideAspect | 117 | locked: true |
187 | 173 | 118 | opened: true | |
185 | 174 | __closeOnContentsClicks: false // TODO: fix bug 1295720 | ||
188 | 175 | 119 | ||
189 | 176 | // The current mode of the controls | 120 | // The current mode of the controls |
190 | 177 | property string currentMode: wideAspect || (currentPage === nowPlaying) | 121 | property string currentMode: wideAspect || (currentPage === nowPlaying) |
191 | 178 | ? "full" : "expanded" | 122 | ? "full" : "expanded" |
192 | 179 | 123 | ||
193 | 180 | // Properties for the different heights | 124 | // Properties for the different heights |
196 | 181 | property int minimizedHeight: units.gu(0.25) | 125 | property int expandedHeight: units.gu(7.25) |
195 | 182 | property int expandedHeight: units.gu(7) | ||
197 | 183 | property int fullHeight: units.gu(11) | 126 | property int fullHeight: units.gu(11) |
198 | 184 | 127 | ||
199 | 185 | onCurrentModeChanged: { | 128 | onCurrentModeChanged: { |
200 | 186 | musicToolbarFullProgressMouseArea.enabled = currentMode === "full" | 129 | musicToolbarFullProgressMouseArea.enabled = currentMode === "full" |
201 | 187 | } | 130 | } |
202 | 188 | 131 | ||
203 | 189 | onOpenedChanged: { | ||
204 | 190 | onToolbarShownChanged(opened, currentPage, currentTab); | ||
205 | 191 | |||
206 | 192 | if (opened) { | ||
207 | 193 | startAutohideTimer(); | ||
208 | 194 | } | ||
209 | 195 | } | ||
210 | 196 | |||
211 | 197 | /* Full toolbar */ | 132 | /* Full toolbar */ |
212 | 198 | Rectangle { | 133 | Rectangle { |
213 | 199 | id: musicToolbarFullContainer | 134 | id: musicToolbarFullContainer |
214 | @@ -747,10 +682,14 @@ | |||
215 | 747 | } | 682 | } |
216 | 748 | ] | 683 | ] |
217 | 749 | 684 | ||
218 | 685 | /* Disabled (empty state) controls */ | ||
219 | 750 | Rectangle { | 686 | Rectangle { |
220 | 751 | id: disabledPlayerControlsGroup | 687 | id: disabledPlayerControlsGroup |
221 | 752 | anchors { | 688 | anchors { |
223 | 753 | fill: parent | 689 | bottom: playerControlsProgressBar.top |
224 | 690 | left: parent.left | ||
225 | 691 | right: parent.right | ||
226 | 692 | top: parent.top | ||
227 | 754 | } | 693 | } |
228 | 755 | color: "transparent" | 694 | color: "transparent" |
229 | 756 | 695 | ||
230 | @@ -806,10 +745,14 @@ | |||
231 | 806 | } | 745 | } |
232 | 807 | } | 746 | } |
233 | 808 | 747 | ||
234 | 748 | /* Enabled (queue > 0) controls */ | ||
235 | 809 | Rectangle { | 749 | Rectangle { |
236 | 810 | id: enabledPlayerControlsGroup | 750 | id: enabledPlayerControlsGroup |
237 | 811 | anchors { | 751 | anchors { |
239 | 812 | fill: parent | 752 | bottom: playerControlsProgressBar.top |
240 | 753 | left: parent.left | ||
241 | 754 | right: parent.right | ||
242 | 755 | top: parent.top | ||
243 | 813 | } | 756 | } |
244 | 814 | color: "transparent" | 757 | color: "transparent" |
245 | 815 | 758 | ||
246 | @@ -931,38 +874,37 @@ | |||
247 | 931 | } | 874 | } |
248 | 932 | } | 875 | } |
249 | 933 | } | 876 | } |
279 | 934 | } | 877 | |
280 | 935 | } | 878 | /* Object which provides the progress bar when toolbar is minimized */ |
281 | 936 | 879 | Rectangle { | |
282 | 937 | /* Object which provides the progress bar when toolbar is minimized */ | 880 | id: playerControlsProgressBar |
283 | 938 | Rectangle { | 881 | anchors { |
284 | 939 | id: musicToolbarSmallProgressBackground | 882 | bottom: parent.bottom |
285 | 940 | anchors { | 883 | left: parent.left |
286 | 941 | bottom: parent.top | 884 | right: parent.right |
258 | 942 | left: parent.left | ||
259 | 943 | right: parent.right | ||
260 | 944 | } | ||
261 | 945 | color: styleMusic.common.black | ||
262 | 946 | height: musicToolbarPanel.minimizedHeight | ||
263 | 947 | visible: (!musicToolbarPanel.animating && | ||
264 | 948 | !musicToolbarPanel.opened) | ||
265 | 949 | || musicToolbarPanel.currentMode == "expanded" | ||
266 | 950 | |||
267 | 951 | Rectangle { | ||
268 | 952 | id: musicToolbarSmallProgressHint | ||
269 | 953 | anchors.left: parent.left | ||
270 | 954 | anchors.top: parent.top | ||
271 | 955 | color: UbuntuColors.blue | ||
272 | 956 | height: parent.height | ||
273 | 957 | width: 0 | ||
274 | 958 | |||
275 | 959 | Connections { | ||
276 | 960 | target: player | ||
277 | 961 | onPositionChanged: { | ||
278 | 962 | musicToolbarSmallProgressHint.width = (player.position / player.duration) * musicToolbarSmallProgressBackground.width | ||
287 | 963 | } | 885 | } |
290 | 964 | onStopped: { | 886 | color: styleMusic.common.black |
291 | 965 | musicToolbarSmallProgressHint.width = 0; | 887 | height: units.gu(0.25) |
292 | 888 | |||
293 | 889 | Rectangle { | ||
294 | 890 | id: playerControlsProgressBarHint | ||
295 | 891 | anchors { | ||
296 | 892 | left: parent.left | ||
297 | 893 | top: parent.top | ||
298 | 894 | } | ||
299 | 895 | color: UbuntuColors.blue | ||
300 | 896 | height: parent.height | ||
301 | 897 | width: 0 | ||
302 | 898 | |||
303 | 899 | Connections { | ||
304 | 900 | target: player | ||
305 | 901 | onPositionChanged: { | ||
306 | 902 | playerControlsProgressBarHint.width = (player.position / player.duration) * playerControlsProgressBar.width | ||
307 | 903 | } | ||
308 | 904 | onStopped: { | ||
309 | 905 | playerControlsProgressBarHint.width = 0; | ||
310 | 906 | } | ||
311 | 907 | } | ||
312 | 966 | } | 908 | } |
313 | 967 | } | 909 | } |
314 | 968 | } | 910 | } |
315 | @@ -1000,19 +942,6 @@ | |||
316 | 1000 | musicToolbarFullProgressBarContainer.seeking = false; | 942 | musicToolbarFullProgressBarContainer.seeking = false; |
317 | 1001 | } | 943 | } |
318 | 1002 | } | 944 | } |
319 | 1003 | |||
320 | 1004 | // Timer for autohide | ||
321 | 1005 | Timer { | ||
322 | 1006 | id: toolbarAutoHideTimer | ||
323 | 1007 | interval: 5000 | ||
324 | 1008 | repeat: false | ||
325 | 1009 | running: false | ||
326 | 1010 | onTriggered: { | ||
327 | 1011 | if (currentPage !== nowPlaying) { // don't autohide on now playing | ||
328 | 1012 | hideToolbar(); | ||
329 | 1013 | } | ||
330 | 1014 | } | ||
331 | 1015 | } | ||
332 | 1016 | } | 945 | } |
333 | 1017 | } | 946 | } |
334 | 1018 | 947 | ||
335 | 1019 | 948 | ||
336 | === modified file 'MusicTracks.qml' | |||
337 | --- MusicTracks.qml 2014-09-20 15:41:33 +0000 | |||
338 | +++ MusicTracks.qml 2014-10-01 21:09:08 +0000 | |||
339 | @@ -36,8 +36,9 @@ | |||
340 | 36 | 36 | ||
341 | 37 | ListView { | 37 | ListView { |
342 | 38 | id: tracklist | 38 | id: tracklist |
345 | 39 | anchors.fill: parent | 39 | anchors { |
346 | 40 | anchors.bottomMargin: musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | 40 | fill: parent |
347 | 41 | } | ||
348 | 41 | highlightFollowsCurrentItem: false | 42 | highlightFollowsCurrentItem: false |
349 | 42 | objectName: "trackstab-listview" | 43 | objectName: "trackstab-listview" |
350 | 43 | model: SortFilterModel { | 44 | model: SortFilterModel { |
351 | 44 | 45 | ||
352 | === modified file 'MusicaddtoPlaylist.qml' | |||
353 | --- MusicaddtoPlaylist.qml 2014-09-20 10:50:45 +0000 | |||
354 | +++ MusicaddtoPlaylist.qml 2014-10-01 21:09:08 +0000 | |||
355 | @@ -65,7 +65,6 @@ | |||
356 | 65 | ListView { | 65 | ListView { |
357 | 66 | id: addtoPlaylistView | 66 | id: addtoPlaylistView |
358 | 67 | anchors { | 67 | anchors { |
359 | 68 | bottomMargin: musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | ||
360 | 69 | fill: parent | 68 | fill: parent |
361 | 70 | } | 69 | } |
362 | 71 | clip: true | 70 | clip: true |
363 | 72 | 71 | ||
364 | === modified file 'common/AlbumsPage.qml' | |||
365 | --- common/AlbumsPage.qml 2014-09-20 15:41:33 +0000 | |||
366 | +++ common/AlbumsPage.qml 2014-10-01 21:09:08 +0000 | |||
367 | @@ -28,7 +28,6 @@ | |||
368 | 28 | 28 | ||
369 | 29 | MusicPage { | 29 | MusicPage { |
370 | 30 | id: albumStackPage | 30 | id: albumStackPage |
371 | 31 | anchors.bottomMargin: units.gu(.5) | ||
372 | 32 | objectName: "albumsArtistPage" | 31 | objectName: "albumsArtistPage" |
373 | 33 | visible: false | 32 | visible: false |
374 | 34 | 33 | ||
375 | @@ -38,7 +37,6 @@ | |||
376 | 38 | ListView { | 37 | ListView { |
377 | 39 | id: albumtrackslist | 38 | id: albumtrackslist |
378 | 40 | anchors { | 39 | anchors { |
379 | 41 | bottomMargin: wideAspect ? musicToolbar.fullHeight : musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | ||
380 | 42 | fill: parent | 40 | fill: parent |
381 | 43 | } | 41 | } |
382 | 44 | delegate: albumTracksDelegate | 42 | delegate: albumTracksDelegate |
383 | 45 | 43 | ||
384 | === modified file 'common/MusicPage.qml' | |||
385 | --- common/MusicPage.qml 2014-08-20 17:35:52 +0000 | |||
386 | +++ common/MusicPage.qml 2014-10-01 21:09:08 +0000 | |||
387 | @@ -23,6 +23,10 @@ | |||
388 | 23 | // generic page for music, could be useful for bottomedge implementation | 23 | // generic page for music, could be useful for bottomedge implementation |
389 | 24 | Page { | 24 | Page { |
390 | 25 | id: thisPage | 25 | id: thisPage |
391 | 26 | anchors { | ||
392 | 27 | bottomMargin: musicToolbar.currentHeight | ||
393 | 28 | fill: parent | ||
394 | 29 | } | ||
395 | 26 | 30 | ||
396 | 27 | onVisibleChanged: { | 31 | onVisibleChanged: { |
397 | 28 | if (visible) { | 32 | if (visible) { |
398 | 29 | 33 | ||
399 | === modified file 'common/SongsPage.qml' | |||
400 | --- common/SongsPage.qml 2014-09-20 15:41:33 +0000 | |||
401 | +++ common/SongsPage.qml 2014-10-01 21:09:08 +0000 | |||
402 | @@ -29,7 +29,6 @@ | |||
403 | 29 | 29 | ||
404 | 30 | MusicPage { | 30 | MusicPage { |
405 | 31 | id: songStackPage | 31 | id: songStackPage |
406 | 32 | anchors.bottomMargin: units.gu(.5) | ||
407 | 33 | objectName: "songsPage" | 32 | objectName: "songsPage" |
408 | 34 | visible: false | 33 | visible: false |
409 | 35 | 34 | ||
410 | @@ -52,7 +51,6 @@ | |||
411 | 52 | ListView { | 51 | ListView { |
412 | 53 | id: albumtrackslist | 52 | id: albumtrackslist |
413 | 54 | anchors { | 53 | anchors { |
414 | 55 | bottomMargin: wideAspect ? musicToolbar.fullHeight : musicToolbar.mouseAreaOffset + musicToolbar.minimizedHeight | ||
415 | 56 | fill: parent | 54 | fill: parent |
416 | 57 | } | 55 | } |
417 | 58 | delegate: albumTracksDelegate | 56 | delegate: albumTracksDelegate |
418 | 59 | 57 | ||
419 | === modified file 'music-app.qml' | |||
420 | --- music-app.qml 2014-09-30 01:04:02 +0000 | |||
421 | +++ music-app.qml 2014-10-01 21:09:08 +0000 | |||
422 | @@ -46,11 +46,7 @@ | |||
423 | 46 | // Global keyboard shortcuts | 46 | // Global keyboard shortcuts |
424 | 47 | focus: true | 47 | focus: true |
425 | 48 | Keys.onPressed: { | 48 | Keys.onPressed: { |
431 | 49 | if (event.key === Qt.Key_Alt) { | 49 | if(event.key === Qt.Key_Escape) { |
427 | 50 | // On alt key press show toolbar and start autohide timer | ||
428 | 51 | musicToolbar.showToolbar(); | ||
429 | 52 | } | ||
430 | 53 | else if(event.key === Qt.Key_Escape) { | ||
432 | 54 | musicToolbar.goBack(); // Esc Go back | 50 | musicToolbar.goBack(); // Esc Go back |
433 | 55 | } | 51 | } |
434 | 56 | else if(event.modifiers === Qt.AltModifier) { | 52 | else if(event.modifiers === Qt.AltModifier) { |
435 | @@ -95,11 +91,9 @@ | |||
436 | 95 | case Qt.Key_J: // Ctrl+J Jump to playing song | 91 | case Qt.Key_J: // Ctrl+J Jump to playing song |
437 | 96 | nowPlaying.visible = true; | 92 | nowPlaying.visible = true; |
438 | 97 | nowPlaying.positionAt(player.currentIndex); | 93 | nowPlaying.positionAt(player.currentIndex); |
439 | 98 | musicToolbar.showToolbar(); | ||
440 | 99 | break; | 94 | break; |
441 | 100 | case Qt.Key_N: // Ctrl+N Show now playing | 95 | case Qt.Key_N: // Ctrl+N Show now playing |
442 | 101 | nowPlaying.visible = true; | 96 | nowPlaying.visible = true; |
443 | 102 | musicToolbar.showToolbar(); | ||
444 | 103 | break; | 97 | break; |
445 | 104 | case Qt.Key_P: // Ctrl+P Toggle playing state | 98 | case Qt.Key_P: // Ctrl+P Toggle playing state |
446 | 105 | player.toggle(); | 99 | player.toggle(); |
447 | @@ -576,12 +570,6 @@ | |||
448 | 576 | if (args.values.url) { | 570 | if (args.values.url) { |
449 | 577 | uriHandler.process(args.values.url, true); | 571 | uriHandler.process(args.values.url, true); |
450 | 578 | } | 572 | } |
451 | 579 | |||
452 | 580 | // Show toolbar and start timer if there is music | ||
453 | 581 | if (!emptyPage.noMusic) { | ||
454 | 582 | musicToolbar.showToolbar(); | ||
455 | 583 | musicToolbar.startAutohideTimer(); | ||
456 | 584 | } | ||
457 | 585 | } | 573 | } |
458 | 586 | 574 | ||
459 | 587 | // VARIABLES | 575 | // VARIABLES |
460 | @@ -597,7 +585,6 @@ | |||
461 | 597 | property bool selectedAlbum: false | 585 | property bool selectedAlbum: false |
462 | 598 | 586 | ||
463 | 599 | signal listItemSwiping(int i) | 587 | signal listItemSwiping(int i) |
464 | 600 | signal onToolbarShownChanged(bool shown, var currentPage, var currentTab) | ||
465 | 601 | 588 | ||
466 | 602 | property bool wideAspect: width >= units.gu(70) && loadedUI | 589 | property bool wideAspect: width >= units.gu(70) && loadedUI |
467 | 603 | property bool loadedUI: false // property to detect if the UI has finished | 590 | property bool loadedUI: false // property to detect if the UI has finished |
468 | @@ -679,8 +666,6 @@ | |||
469 | 679 | // Show the Now Playing page and make sure the track is visible | 666 | // Show the Now Playing page and make sure the track is visible |
470 | 680 | tabs.pushNowPlaying(); | 667 | tabs.pushNowPlaying(); |
471 | 681 | nowPlaying.ensureVisibleIndex = index; | 668 | nowPlaying.ensureVisibleIndex = index; |
472 | 682 | |||
473 | 683 | musicToolbar.showToolbar(); | ||
474 | 684 | } | 669 | } |
475 | 685 | else { | 670 | else { |
476 | 686 | player.source = file; | 671 | player.source = file; |
477 | @@ -698,8 +683,6 @@ | |||
478 | 698 | // Show the Now Playing page and make sure the track is visible | 683 | // Show the Now Playing page and make sure the track is visible |
479 | 699 | tabs.pushNowPlaying(); | 684 | tabs.pushNowPlaying(); |
480 | 700 | nowPlaying.ensureVisibleIndex = index; | 685 | nowPlaying.ensureVisibleIndex = index; |
481 | 701 | |||
482 | 702 | musicToolbar.showToolbar(); | ||
483 | 703 | } | 686 | } |
484 | 704 | 687 | ||
485 | 705 | function playRandomSong(shuffle) | 688 | function playRandomSong(shuffle) |
FAILED: Continuous integration, rev:642 /code.launchpad .net/~andrew- hayzen/ music-app/ remix-small- toolbar- always- show/+merge/ 236544/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// 91.189. 93.70:8080/ job/music- app-remix- ci/2/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic- python3/ 614 91.189. 93.70:8080/ job/generic- mediumtests- utopic- python3/ 614/artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/music- app-remix- utopic- amd64-ci/ 2
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/music- app-remix- ci/2/rebuild
http://