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:
parent
14c9de0aac
commit
8a9cb73686
|
@ -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 {
|
||||
|
|
|
@ -167,7 +167,6 @@ Page {
|
|||
onStatusChanged: {
|
||||
if (status == PageStatus.Active) {
|
||||
appWindow.itemData = null
|
||||
loadModels(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue