[vlc-commits] qml: bring back playlist toolbar label

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:45:34 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Jun 29 22:37:42 2020 +0300| [dd6cf02092eca31e9daccc06d096071c82d27ece] | committer: Pierre Lamot

qml: bring back playlist toolbar label

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

 modules/gui/qt/playlist/qml/PlaylistListView.qml | 39 ++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 67b59404eb..481f09bf90 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -19,6 +19,7 @@ import QtQuick 2.11
 import QtQuick.Controls 2.4
 import QtQuick.Layouts 1.3
 import QtQml.Models 2.2
+import QtGraphicalEffects 1.0
 
 import org.videolan.vlc 0.1
 
@@ -440,6 +441,44 @@ Widgets.NavigableFocusScope {
             }
         }
 
+        Item {
+            Layout.fillWidth: true
+            Layout.alignment: Qt.AlignHCenter
+            height: VLCStyle.heightBar_normal
+            visible: !(infoText.text === "")
+
+            RectangularGlow {
+                anchors.top: parent.top
+                anchors.bottom: parent.bottom
+                anchors.horizontalCenter: parent.horizontalCenter
+
+                width: infoText.width + VLCStyle.dp(18)
+                height: infoText.height + VLCStyle.dp(12)
+
+                glowRadius: 2
+                cornerRadius: 10
+                spread: 0.1
+                color: VLCStyle.colors.glowColorBanner
+            }
+
+            Label {
+                id: infoText
+                anchors.top: parent.top
+                anchors.bottom: parent.bottom
+                anchors.centerIn: parent
+                horizontalAlignment: Text.AlignHCenter
+
+                text: (view.mode === "select")
+                        ? i18n.qtr("Select tracks (%1)").arg(plmodel.selectedCount)
+                    : (view.mode === "move")
+                        ? i18n.qtr("Move tracks (%1)").arg(plmodel.selectedCount)
+                    : ""
+                font.pixelSize: VLCStyle.fontSize_large
+                color: VLCStyle.colors.text
+                elide: Text.ElideRight
+            }
+        }
+
         PlaylistToolbar {
             Layout.fillWidth: true
 



More information about the vlc-commits mailing list