[vlc-commits] qml: remove explicit artwork info from miniplayer

Fatih Uzunoglu git at videolan.org
Mon Nov 16 10:04:09 CET 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Aug 13 23:27:15 2020 +0300| [9e2659f141e7561c15597394805c86dc9e76fd88] | committer: Pierre Lamot

qml: remove explicit artwork info from miniplayer

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e2659f141e7561c15597394805c86dc9e76fd88
---

 modules/gui/qt/player/qml/MiniPlayer.qml | 105 +------------------------------
 1 file changed, 2 insertions(+), 103 deletions(-)

diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index 4610938296..57d86c5232 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -103,114 +103,15 @@ Widgets.NavigableFocusScope {
                 tint: VLCStyle.colors.blendColors(VLCStyle.colors.bg, VLCStyle.colors.banner, 0.85)
             }
 
-            Widgets.FocusBackground {
-                id: playingItemInfo
-
-                anchors {
-                    top: parent.top
-                    bottom: parent.bottom
-                    left: parent.left
-
-                    leftMargin: VLCStyle.applicationHorizontalMargin + VLCStyle.margin_normal
-                    bottomMargin: VLCStyle.applicationVerticalMargin
-                }
-                width: playingItemInfoRow.width
-                focus: true
-
-                MouseArea {
-                    anchors.fill: parent
-                    onClicked: history.push(["player"])
-                }
-
-                Keys.onPressed: {
-                    if (KeyHelper.matchOk(event) ) {
-                        event.accepted = true
-                    }
-                }
-                Keys.onReleased: {
-                    if (!event.accepted && KeyHelper.matchOk(event))
-                        history.push(["player"])
-                }
-
-
-                Row {
-                    id: playingItemInfoRow
-                    anchors.top: parent.top
-                    anchors.bottom: parent.bottom
-                    anchors.left: parent.left
-
-                    Item {
-                        anchors.verticalCenter: parent.verticalCenter
-                        implicitHeight: childrenRect.height
-                        implicitWidth:  childrenRect.width
-
-                        Rectangle {
-                            id: coverRect
-                            anchors.fill: cover
-                            color: VLCStyle.colors.bg
-                        }
-
-                        DropShadow {
-                            anchors.fill: coverRect
-                            source: coverRect
-                            radius: 8
-                            samples: 17
-                            color: VLCStyle.colors.glowColorBanner
-                            spread: 0.2
-                        }
-
-                        Image {
-                            id: cover
-
-                            source: (mainPlaylistController.currentItem.artwork && mainPlaylistController.currentItem.artwork.toString())
-                                    ? mainPlaylistController.currentItem.artwork
-                                    : VLCStyle.noArtAlbum
-                            fillMode: Image.PreserveAspectFit
-
-                            width: VLCStyle.dp(60, VLCStyle.scale)
-                            height: VLCStyle.dp(60, VLCStyle.scale)
-                        }
-                    }
-
-                    Column {
-                        anchors.verticalCenter: parent.verticalCenter
-                        leftPadding: VLCStyle.margin_xsmall
-
-                        Widgets.MenuLabel {
-                            id: titleLabel
-                            text: mainPlaylistController.currentItem.title
-                        }
-
-                        Widgets.MenuCaption {
-                            id: artistLabel
-                            text: mainPlaylistController.currentItem.artist
-                        }
-
-                        Widgets.MenuCaption {
-                            id: progressIndicator
-                            text: player.time.toString() + " / " + player.length.toString()
-                        }
-                    }
-                }
-
-                KeyNavigation.right: buttonrow_left
-            }
-
-
             RowLayout {
                 anchors {
-                    top: parent.top
-                    bottom: parent.bottom
-                    left: playingItemInfo.right
-                    right: parent.right
+                    fill: parent
 
                     leftMargin: VLCStyle.applicationHorizontalMargin
                     rightMargin: VLCStyle.applicationHorizontalMargin
                     bottomMargin: VLCStyle.applicationVerticalMargin
                 }
 
-                spacing: VLCStyle.margin_large
-
                 PlayerButtonsLayout {
                     id: buttonrow_left
 
@@ -223,7 +124,6 @@ Widgets.NavigableFocusScope {
                     Layout.rightMargin: VLCStyle.margin_normal
 
                     navigationParent: root
-                    navigationLeftItem: playingItemInfo
                     navigationRightItem: buttonrow_center
                 }
 
@@ -240,7 +140,7 @@ Widgets.NavigableFocusScope {
 
                     navigationParent: root
                     navigationLeftItem: buttonrow_left
-                    navigationRightItem: buttonrow_center
+                    navigationRightItem: buttonrow_right
                 }
 
                 PlayerButtonsLayout {
@@ -259,7 +159,6 @@ Widgets.NavigableFocusScope {
                 }
             }
 
-
             Connections{
                 target: mainInterface
                 onToolBarConfUpdated: {



More information about the vlc-commits mailing list