[vlc-commits] [Git][videolan/vlc][master] 3 commits: qml/BannerSources: don't clip until required

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Feb 21 10:20:14 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
2e158473 by Prince Gupta at 2022-02-21T09:32:06+00:00
qml/BannerSources: don't clip until required

- - - - -
10ccae33 by Prince Gupta at 2022-02-21T09:32:06+00:00
qml/ScrollingText: add animationRunning property

- - - - -
b40b0f5f by Prince Gupta at 2022-02-21T09:32:06+00:00
qml/ScrollingText: don't clip until required

- - - - -


4 changed files:

- modules/gui/qt/maininterface/qml/BannerSources.qml
- modules/gui/qt/widgets/qml/DragItem.qml
- modules/gui/qt/widgets/qml/GridItem.qml
- modules/gui/qt/widgets/qml/ScrollingText.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/BannerSources.qml
=====================================
@@ -343,7 +343,7 @@ FocusScope {
 
                         width: Math.min(contentWidth, availableWidth)
                         height: VLCStyle.localToolbar_height
-                        clip: true
+                        clip: contentWidth > width
                         contentWidth: localMenuGroup.width
                         contentHeight: VLCStyle.localToolbar_height // don't allow vertical flickering
                         anchors.rightMargin: VLCStyle.margin_xxsmall // only applied when right aligned


=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -321,6 +321,7 @@ Item {
             scroll: true
             height: titleLabel.height
             width: parent.width
+            clip: animationRunning
 
             T.Label {
                 id: titleLabel


=====================================
modules/gui/qt/widgets/qml/GridItem.qml
=====================================
@@ -268,6 +268,7 @@ T.Control {
                 height: titleLabel.height
                 width: titleLabel.width
                 visible: root.title !== ""
+                clip: animationRunning
 
                 Widgets.ListLabel {
                     id: titleLabel


=====================================
modules/gui/qt/widgets/qml/ScrollingText.qml
=====================================
@@ -23,7 +23,7 @@ import "qrc:///style/"
 Item {
     id: control
 
-    clip: true
+    readonly property alias animationRunning: scrollAnimation.running
 
     property Text label: undefined
     property bool scroll: false



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cf8225b3f3ceaeadb37fdf99c0ffb6c4c5010991...b40b0f5f7916f4d83964f14c4ef5c0f03be49a16

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cf8225b3f3ceaeadb37fdf99c0ffb6c4c5010991...b40b0f5f7916f4d83964f14c4ef5c0f03be49a16
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list