mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Polish UI elements
This commit is contained in:
parent
75474e1793
commit
f028e38b7a
7 changed files with 101 additions and 42 deletions
|
@ -38,7 +38,7 @@ ApplicationWindow {
|
|||
readonly property ApiClient apiClient: _apiClient
|
||||
|
||||
// Due QTBUG-10822, declarartions such as `property J.Item foo` are not possible.
|
||||
property QtObject itemData
|
||||
property var itemData
|
||||
// Id of the collection currently browsing. For use on the cover.
|
||||
property string collectionId
|
||||
|
||||
|
@ -68,8 +68,10 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
}
|
||||
cover: {
|
||||
if ([MediaPlayer.NoMedia, MediaPlayer.InvalidMedia, MediaPlayer.UnknownStatus].indexOf(playbackManager.status) >= 0) {
|
||||
cover: CoverBackground {CoverPlaceholder { icon.source: "icon.png"; text: "Sailfin"}}
|
||||
/*{
|
||||
// Disabled due to buggy Loader behaviour
|
||||
if ([MediaPlayer.NoMedia, MediaPlayer.InvalidMedia, MediaPlayer.UnknownStatus].indexOf(_playbackManager.mediaStatus) >= 0) {
|
||||
if (itemData) {
|
||||
return Qt.resolvedUrl("cover/PosterCover.qml")
|
||||
} else {
|
||||
|
@ -78,7 +80,7 @@ ApplicationWindow {
|
|||
} else if (playbackManager.hasVideo){
|
||||
return Qt.resolvedUrl("cover/VideoCover.qml")
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
Notification {
|
||||
id: errorNotification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue