1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-25 10:25:17 +00:00

SailfishOS: Small user interface improvements

* Pressing shuffle will now show a notification indicating it is not
  implemented.
* On the initial setup, the discovered settings are displayed somewhat
  more neatly.
* Disable reloading the main view each time the MainPage gets activated.
This commit is contained in:
Chris Josten 2021-09-08 21:57:23 +02:00
parent 14c9de0aac
commit 8a9cb73686
3 changed files with 34 additions and 15 deletions

View file

@ -158,8 +158,8 @@ PanelBackground {
verticalCenter: playButton.verticalCenter
}
icon.source: "image://theme/icon-m-shuffle"
enabled: false
opacity: 0
onClicked: Notices.show(qsTr("Shuffle not yet implemented"))
}
IconButton {

View file

@ -167,7 +167,6 @@ Page {
onStatusChanged: {
if (status == PageStatus.Active) {
appWindow.itemData = null
loadModels(false)
}
}

View file

@ -73,7 +73,27 @@ Dialog {
delegate: MenuItem {
readonly property string _address: address
readonly property string _name: name
text: qsTr("%1 - %2").arg(name).arg(address)
// No, this isn't a clever hack that depends on how ComboBox is
// implemented. It really isn't, trust me!
readonly property string description: address
height: Theme.itemSizeSmall + Theme.paddingSmall * 2
text: name
topPadding: -description.implicitHeight
Label {
id: description
text: parent.description
anchors {
verticalCenter: parent.verticalCenter
verticalCenterOffset: parent.implicitHeight + Theme.paddingSmall
}
width: parent.width
horizontalAlignment: parent.horizontalAlignment
verticalAlignment: parent.verticalAlignment
font.pixelSize: Theme.fontSizeExtraSmall
truncationMode: parent.truncationMode
color: Theme.rgba(parent.color, Theme.opacityHigh)
}
}
}
}