[vlc-commits] qml: add enqueue and play text

Abel Tesfaye git at videolan.org
Tue Jul 30 17:57:07 CEST 2019


vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Sat Jun 22 15:29:42 2019 +0300| [4103d57b3c71b2a746046665f9aec14cdea3a650] | committer: Jean-Baptiste Kempf

qml: add enqueue and play text

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

 modules/gui/qt/qml/utils/GridItem.qml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/modules/gui/qt/qml/utils/GridItem.qml b/modules/gui/qt/qml/utils/GridItem.qml
index 6bb90d9e3c..56f110faf2 100644
--- a/modules/gui/qt/qml/utils/GridItem.qml
+++ b/modules/gui/qt/qml/utils/GridItem.qml
@@ -98,10 +98,12 @@ Rectangle {
                                     anchors.fill: parent
                                     visible: !noActionButtons
                                     Item {
+                                    id: plusItem
                                         Layout.fillHeight: true
                                         Layout.fillWidth: true
                                         /* A addToPlaylist button visible when hovered */
                                         Text {
+                                        id: plusIcon
                                             property int iconSize: VLCStyle.icon_large
                                             Behavior on iconSize  { SmoothedAnimation { velocity: 100 } }
                                             Binding on iconSize {
@@ -125,14 +127,24 @@ Rectangle {
                                                 onClicked: root.addToPlaylistClicked()
                                             }
                                         }
+                                    Text {
+                                        anchors{
+                                            top: plusIcon.bottom
+                                        }
+                                        anchors.horizontalCenter:plusItem.horizontalCenter
+                                        font.pixelSize: root.isVideo ? VLCStyle.fontSize_normal : VLCStyle.fontSize_small
+                                        text: qsTr("Enqueue")
+                                        color: "white"
                                     }
 
                                     /* A play button visible when hovered */
                                     Item {
+                                    id: playItem
                                         Layout.fillHeight: true
                                         Layout.fillWidth: true
 
                                         Text {
+                                        id: playIcon
                                             property int iconSize: VLCStyle.icon_large
                                             Behavior on iconSize  {
                                                 SmoothedAnimation { velocity: 100 }
@@ -156,6 +168,14 @@ Rectangle {
                                                 onClicked: root.playClicked()
                                             }
                                         }
+                                    Text {
+                                        anchors{
+                                            top: playIcon.bottom
+                                        }
+                                        anchors.horizontalCenter:playItem.horizontalCenter
+                                        font.pixelSize: root.isVideo ? VLCStyle.fontSize_normal : VLCStyle.fontSize_small
+                                        text: qsTr("Play")
+                                        color: "white"
                                     }
                                 }
                             }
@@ -290,6 +310,8 @@ Rectangle {
                         font.pixelSize: VLCStyle.fontSize_small
                         color: VLCStyle.colors.accent
                         text: "NEW"
+                    }
+                }
             }
         }
     }



More information about the vlc-commits mailing list