Changeset View
Changeset View
Standalone View
Standalone View
src/qml/NavigationActionBar.qml
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 83 | RowLayout { | |||
---|---|---|---|---|---|
85 | Layout.alignment: Qt.AlignTop | 85 | Layout.alignment: Qt.AlignTop | ||
86 | Layout.preferredHeight: elisaTheme.navigationBarHeight | 86 | Layout.preferredHeight: elisaTheme.navigationBarHeight | ||
87 | Layout.minimumHeight: elisaTheme.navigationBarHeight | 87 | Layout.minimumHeight: elisaTheme.navigationBarHeight | ||
88 | Layout.maximumHeight: elisaTheme.navigationBarHeight | 88 | Layout.maximumHeight: elisaTheme.navigationBarHeight | ||
89 | 89 | | |||
90 | Controls1.ToolButton { | 90 | Controls1.ToolButton { | ||
91 | action: goPreviousAction | 91 | action: goPreviousAction | ||
92 | objectName: 'goPreviousButton' | 92 | objectName: 'goPreviousButton' | ||
93 | | ||||
94 | Keys.onReturnPressed: action.trigger() | ||||
95 | | ||||
93 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 96 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
94 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 97 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
95 | visible: enableGoBack | 98 | visible: enableGoBack | ||
96 | } | 99 | } | ||
97 | 100 | | |||
98 | Image { | 101 | Image { | ||
99 | id: mainIcon | 102 | id: mainIcon | ||
100 | source: image | 103 | source: image | ||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 191 | RowLayout { | |||
191 | Layout.bottomMargin: secondaryTitle !== "" ? 0 : 14 | 194 | Layout.bottomMargin: secondaryTitle !== "" ? 0 : 14 | ||
192 | 195 | | |||
193 | Controls1.Button { | 196 | Controls1.Button { | ||
194 | objectName: 'enqueueButton' | 197 | objectName: 'enqueueButton' | ||
195 | text: i18nc("Add current list to playlist", "Enqueue") | 198 | text: i18nc("Add current list to playlist", "Enqueue") | ||
196 | iconName: "media-track-add-amarok" | 199 | iconName: "media-track-add-amarok" | ||
197 | 200 | | |||
198 | onClicked: enqueue() | 201 | onClicked: enqueue() | ||
202 | Keys.onReturnPressed: enqueue() | ||||
199 | 203 | | |||
200 | Layout.leftMargin: 0 | 204 | Layout.leftMargin: 0 | ||
201 | Layout.rightMargin: 0 | 205 | Layout.rightMargin: 0 | ||
202 | } | 206 | } | ||
203 | 207 | | |||
204 | Controls1.Button { | 208 | Controls1.Button { | ||
205 | objectName: 'replaceAndPlayButton' | 209 | objectName: 'replaceAndPlayButton' | ||
206 | text: i18nc("Clear playlist and play", "Replace and Play") | 210 | text: i18nc("Clear playlist and play", "Replace and Play") | ||
207 | tooltip: i18nc("Clear playlist and add current list to it", "Replace PlayList and Play Now") | 211 | tooltip: i18nc("Clear playlist and add current list to it", "Replace PlayList and Play Now") | ||
208 | iconName: "media-playback-start" | 212 | iconName: "media-playback-start" | ||
209 | 213 | | |||
210 | onClicked: replaceAndPlay() | 214 | onClicked: replaceAndPlay() | ||
215 | Keys.onReturnPressed: replaceAndPlay() | ||||
211 | 216 | | |||
212 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 217 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
213 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 218 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
214 | } | 219 | } | ||
215 | 220 | | |||
216 | Controls1.Button { | 221 | Controls1.Button { | ||
217 | objectName: 'showArtistButton' | 222 | objectName: 'showArtistButton' | ||
218 | id: showArtistButton | 223 | id: showArtistButton | ||
219 | 224 | | |||
220 | visible: allowArtistNavigation | 225 | visible: allowArtistNavigation | ||
221 | text: i18nc("Button to navigate to the artist of the album", "Display Artist") | 226 | text: i18nc("Button to navigate to the artist of the album", "Display Artist") | ||
222 | iconName: "view-media-artist" | 227 | iconName: "view-media-artist" | ||
223 | 228 | | |||
224 | onClicked: showArtist() | 229 | onClicked: showArtist() | ||
230 | Keys.onReturnPressed: showArtist() | ||||
225 | 231 | | |||
226 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 232 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
227 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 233 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
228 | } | 234 | } | ||
229 | 235 | | |||
230 | Item { | 236 | Item { | ||
231 | Layout.fillWidth: true | 237 | Layout.fillWidth: true | ||
232 | } | 238 | } | ||
233 | 239 | | |||
234 | Controls1.ToolButton { | 240 | Controls1.ToolButton { | ||
235 | action: showFilterAction | 241 | action: showFilterAction | ||
236 | objectName: 'showFilterButton' | 242 | objectName: 'showFilterButton' | ||
237 | 243 | | |||
244 | Keys.onReturnPressed: action.trigger() | ||||
245 | | ||||
238 | Layout.alignment: Qt.AlignRight | 246 | Layout.alignment: Qt.AlignRight | ||
239 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 247 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
240 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 248 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
241 | } | 249 | } | ||
242 | } | 250 | } | ||
243 | } | 251 | } | ||
244 | } | 252 | } | ||
245 | 253 | | |||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 358 | Item { | |||
351 | Layout.fillWidth: true | 359 | Layout.fillWidth: true | ||
352 | implicitWidth: elisaTheme.layoutHorizontalMargin * 4 | 360 | implicitWidth: elisaTheme.layoutHorizontalMargin * 4 | ||
353 | } | 361 | } | ||
354 | 362 | | |||
355 | Controls1.ToolButton { | 363 | Controls1.ToolButton { | ||
356 | action: sortAction | 364 | action: sortAction | ||
357 | objectName: 'sortAscendingButton' | 365 | objectName: 'sortAscendingButton' | ||
358 | 366 | | |||
367 | Keys.onReturnPressed: action.trigger() | ||||
368 | | ||||
359 | Layout.alignment: Qt.AlignRight | 369 | Layout.alignment: Qt.AlignRight | ||
360 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 370 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
361 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 371 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
362 | visible: enableSorting | 372 | visible: enableSorting | ||
363 | } | 373 | } | ||
364 | } | 374 | } | ||
365 | } | 375 | } | ||
366 | 376 | | |||
Show All 40 Lines |