[vlc-commits] qml: add side margins to local tool bar

Prince Gupta git at videolan.org
Thu Jan 14 14:42:20 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Dec 23 19:47:54 2020 +0530| [1a31a47d0257c5018b8323b857c4ddbac95f12a1] | committer: Pierre Lamot

qml: add side margins to local tool bar

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

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

 modules/gui/qt/maininterface/qml/BannerSources.qml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml
index dc28a1a979..d8243668fd 100644
--- a/modules/gui/qt/maininterface/qml/BannerSources.qml
+++ b/modules/gui/qt/maininterface/qml/BannerSources.qml
@@ -113,6 +113,7 @@ Widgets.NavigableFocusScope {
                             id: globalToolbarLeft
                             anchors.verticalCenter: parent.verticalCenter
                             anchors.left: parent.left
+                            anchors.leftMargin: VLCStyle.margin_xsmall
                             spacing: VLCStyle.margin_xxxsmall
 
                             Widgets.IconToolButton {
@@ -201,7 +202,7 @@ Widgets.NavigableFocusScope {
                         top: parent.top
                         left: parent.left
                         bottom: parent.bottom
-                        leftMargin: VLCStyle.applicationHorizontalMargin
+                        leftMargin: VLCStyle.applicationHorizontalMargin + VLCStyle.margin_xsmall
                     }
 
                     model: ObjectModel {
@@ -278,6 +279,7 @@ Widgets.NavigableFocusScope {
                     readonly property int availableWidth: parent.width
                                                           - (localContextGroup.width + playlistGroup.width)
                                                           - (VLCStyle.applicationHorizontalMargin * 2)
+                                                          - (VLCStyle.margin_xsmall * 2)
                                                           - (VLCStyle.margin_xxsmall * 2)
                     readonly property bool _alignHCenter: ((localToolbar.width - width) / 2) + width < playlistGroup.x
 
@@ -355,7 +357,7 @@ Widgets.NavigableFocusScope {
                         top: parent.top
                         right: parent.right
                         bottom: parent.bottom
-                        rightMargin: VLCStyle.applicationHorizontalMargin
+                        rightMargin: VLCStyle.applicationHorizontalMargin + VLCStyle.margin_xsmall
                     }
                     spacing: VLCStyle.margin_xxxsmall
 



More information about the vlc-commits mailing list