mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Minor UI cleanup
This commit is contained in:
parent
306693fa04
commit
c1b0bddd10
5 changed files with 121 additions and 71 deletions
|
@ -39,7 +39,7 @@ PanelBackground {
|
|||
id: playbackBar
|
||||
height: Theme.itemSizeLarge
|
||||
width: parent.width
|
||||
y: parent.height
|
||||
y: parent.height - height
|
||||
property PlaybackManager manager
|
||||
property bool open
|
||||
property real visibleSize: height
|
||||
|
@ -55,6 +55,7 @@ PanelBackground {
|
|||
height: parent.height
|
||||
onClicked: playbackBar.state = (playbackBar.state == "large" ? "open" : "large")
|
||||
|
||||
|
||||
RemoteImage {
|
||||
id: albumArt
|
||||
anchors {
|
||||
|
@ -217,7 +218,7 @@ PanelBackground {
|
|||
name: "large"
|
||||
PropertyChanges {
|
||||
target: playbackBar
|
||||
height: Screen.height
|
||||
height: pageStack.currentOrientation & Orientation.LandscapeMask ? Screen.width : Screen.height
|
||||
}
|
||||
PropertyChanges {
|
||||
target: albumArt
|
||||
|
@ -332,7 +333,8 @@ PanelBackground {
|
|||
when: (appWindow.mediaPlayer.playbackState === MediaPlayer.StoppedState || "__hidePlaybackBar" in pageStack.currentPage) && state != "page"
|
||||
PropertyChanges {
|
||||
target: playbackBarTranslate
|
||||
y: playbackBar.height
|
||||
// + small padding since the ProgressBar otherwise would stick out
|
||||
y: playbackBar.height + Theme.paddingSmall
|
||||
}
|
||||
PropertyChanges {
|
||||
target: playbackBar
|
||||
|
@ -354,10 +356,24 @@ PanelBackground {
|
|||
Page {
|
||||
property bool __hidePlaybackBar: true
|
||||
showNavigationIndicator: true
|
||||
Loader {
|
||||
Component.onCompleted: setSource(Qt.resolvedUrl("PlaybackBar.qml"),
|
||||
{"state": "page", "manager": manager, "y": 0})
|
||||
allowedOrientations: appWindow.allowedOrientations
|
||||
SilicaFlickable {
|
||||
anchors.fill: parent
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
//: Pulley menu item to view detailed media information of a song
|
||||
text: qsTr("Info")
|
||||
}
|
||||
MenuItem {
|
||||
//: Pulley menu item: add music to a playlist
|
||||
text: qsTr("Add to playlist")
|
||||
}
|
||||
}
|
||||
Loader {
|
||||
Component.onCompleted: setSource(Qt.resolvedUrl("PlaybackBar.qml"),
|
||||
{"state": "page", "manager": manager, "y": 0})
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue