[vlc-devel] [PATCH 2/4] QML: center vertically the text of top tab items in BannerSources
Adrien Maglo
magsoft at videolan.org
Wed Jun 26 11:21:39 CEST 2019
Rework also icon margins
---
modules/gui/qt/qml/BannerSources.qml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt/qml/BannerSources.qml b/modules/gui/qt/qml/BannerSources.qml
index 67d99dae57..d912c1f954 100644
--- a/modules/gui/qt/qml/BannerSources.qml
+++ b/modules/gui/qt/qml/BannerSources.qml
@@ -168,15 +168,12 @@ Utils.NavigableFocusScope {
Label {
id: icon
- anchors {
- verticalCenter: parent.verticalCenter
- }
+ anchors.verticalCenter: parent.verticalCenter
color: VLCStyle.colors.buttonText
font.pixelSize: VLCStyle.icon_topbar
font.family: VLCIcons.fontFamily
horizontalAlignment: Text.AlignHCenter
- leftPadding: VLCStyle.margin_xsmall
rightPadding: VLCStyle.margin_xsmall
text: model.icon
@@ -188,9 +185,7 @@ Utils.NavigableFocusScope {
color: VLCStyle.colors.text
padding: VLCStyle.margin_xxsmall
- anchors {
- bottom: parent.bottom
- }
+ anchors.verticalCenter: parent.verticalCenter
}
}
--
2.20.1
More information about the vlc-devel
mailing list