[vlc-devel] [PATCH 17/39] qml: add side margins to local tool bar
Prince Gupta
guptaprince8832 at gmail.com
Thu Jan 7 11:50:13 UTC 2021
---
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 cdfb9a85a5..f5d10c8e00 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
--
2.25.1
More information about the vlc-devel
mailing list