Commit 7b5ef695 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

change order of buttons to have sort button first

the sort button has a varying width: placing it leftmost to avoid having
the other buttons move
parent 673f2b94
Pipeline #34670 passed with stage
in 8 minutes and 56 seconds
......@@ -108,34 +108,6 @@ ColumnLayout {
visible: secondaryTitle !== ""
}
},
FlatButtonWithToolTip {
objectName: 'createRadioButton'
visible: showCreateRadioButton
text: i18nc("Create a new radio", "Create a radio")
icon.name: "list-add"
onClicked: createRadio()
},
FlatButtonWithToolTip {
objectName: 'enqueueButton'
visible: !showCreateRadioButton
text: i18nc("Add current list to playlist", "Enqueue")
icon.name: "list-add"
onClicked: enqueue()
},
FlatButtonWithToolTip {
objectName: 'replaceAndPlayButton'
visible: !showCreateRadioButton
text: i18n("Play now, replacing contents of Playlist")
icon.name: "media-playback-start"
onClicked: replaceAndPlay()
},
FlatButtonWithToolTip {
objectName: 'showArtistButton'
visible: allowArtistNavigation && !showCreateRadioButton
text: i18nc("Button to navigate to the artist of the album", "Display Artist")
icon.name: "view-media-artist"
onClicked: showArtist()
},
FlatButtonWithToolTip {
id: sortMenuButton
......@@ -181,6 +153,34 @@ ColumnLayout {
font: sortMenuButton.font
}
},
FlatButtonWithToolTip {
objectName: 'createRadioButton'
visible: showCreateRadioButton
text: i18nc("Create a new radio", "Create a radio")
icon.name: "list-add"
onClicked: createRadio()
},
FlatButtonWithToolTip {
objectName: 'enqueueButton'
visible: !showCreateRadioButton
text: i18nc("Add current list to playlist", "Enqueue")
icon.name: "list-add"
onClicked: enqueue()
},
FlatButtonWithToolTip {
objectName: 'replaceAndPlayButton'
visible: !showCreateRadioButton
text: i18n("Play now, replacing contents of Playlist")
icon.name: "media-playback-start"
onClicked: replaceAndPlay()
},
FlatButtonWithToolTip {
objectName: 'showArtistButton'
visible: allowArtistNavigation && !showCreateRadioButton
text: i18nc("Button to navigate to the artist of the album", "Display Artist")
icon.name: "view-media-artist"
onClicked: showArtist()
},
FlatButtonWithToolTip {
objectName: 'showFilterButton'
visible: !showCreateRadioButton
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment