[vlc-devel] [PATCH 08/33] qml: change spacing and margins in ControlBar
Prince Gupta
guptaprince8832 at gmail.com
Wed Feb 3 10:56:24 UTC 2021
---
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
--
2.25.1
More information about the vlc-devel
mailing list