[vlc-commits] qml: change spacing and margins in ControlBar

Prince Gupta git at videolan.org
Mon Feb 8 09:59:59 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jan  8 23:04:47 2021 +0530| [f87fa614d50620a984841cdd4f036245b8ec08ac] | committer: Pierre Lamot

qml: change spacing and margins in ControlBar

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

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

 modules/gui/qt/player/qml/ControlBar.qml | 9 ++++++---
 modules/gui/qt/player/qml/Player.qml     | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/player/qml/ControlBar.qml b/modules/gui/qt/player/qml/ControlBar.qml
index 3f42107636..ff0c8ea4a6 100644
--- a/modules/gui/qt/player/qml/ControlBar.qml
+++ b/modules/gui/qt/player/qml/ControlBar.qml
@@ -47,11 +47,12 @@ Widgets.NavigableFocusScope {
     ColumnLayout {
         id: columnLayout
         anchors.fill: parent
-        spacing: VLCStyle.margin_xsmall
-        anchors.leftMargin: VLCStyle.margin_xlarge
-        anchors.rightMargin: VLCStyle.margin_xlarge
+        spacing: VLCStyle.margin_small
 
         RowLayout {
+            Layout.leftMargin: VLCStyle.margin_normal
+            Layout.rightMargin: VLCStyle.margin_normal
+
             Text {
                 text: player.time.toString()
                 color: root.colors.playerFg
@@ -94,6 +95,8 @@ Widgets.NavigableFocusScope {
 
         Item {
             Layout.fillWidth: true
+            Layout.leftMargin: VLCStyle.margin_normal
+            Layout.rightMargin: VLCStyle.margin_normal
             Layout.bottomMargin: VLCStyle.margin_xsmall
             Layout.preferredHeight: playerButtonsLayout.implicitHeight
 
diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index 5e1681e7ad..62f421019f 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -35,7 +35,7 @@ Widgets.NavigableFocusScope {
     property var _menu: undefined
 
     property bool hasEmbededVideo: mainInterface.hasEmbededVideo
-    readonly property int positionSliderY: controlBarView.y + VLCStyle.fontHeight_normal + VLCStyle.margin_xsmall
+    readonly property int positionSliderY: controlBarView.y + VLCStyle.fontHeight_normal + VLCStyle.margin_small
 
     property VLCColors colors: VLCStyle.nightColors
 



More information about the vlc-commits mailing list