[vlc-devel] [PATCH 16/33] qml: change spacing and heights of cover texts and controls in Player

Prince Gupta guptaprince8832 at gmail.com
Wed Feb 3 10:56:32 UTC 2021


---
 modules/gui/qt/player/qml/Player.qml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index 41942ed193..ed36c18931 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -368,10 +368,10 @@ Widgets.NavigableFocusScope {
 
                     Layout.fillWidth: true
                     Layout.preferredHeight: implicitHeight
-                    Layout.topMargin: VLCStyle.margin_normal
+                    Layout.topMargin: VLCStyle.margin_xxlarge
 
                     text: mainPlaylistController.currentItem.album
-                    font.weight: Font.Light
+                    font.pixelSize: VLCStyle.fontSize_xxlarge
                     horizontalAlignment: Text.AlignHCenter
                     color: rootPlayer.colors.playerFg
                     Accessible.description: i18n.qtr("album")
@@ -382,7 +382,7 @@ Widgets.NavigableFocusScope {
 
                     Layout.fillWidth: true
                     Layout.preferredHeight: implicitHeight
-                    Layout.topMargin: VLCStyle.margin_xxsmall
+                    Layout.topMargin: VLCStyle.margin_small
 
                     text: mainPlaylistController.currentItem.artist
                     font.weight: Font.Light
@@ -396,17 +396,18 @@ Widgets.NavigableFocusScope {
 
                     Layout.preferredHeight: implicitHeight
                     Layout.preferredWidth: implicitWidth
-                    Layout.topMargin: VLCStyle.margin_xsmall
+                    Layout.topMargin: VLCStyle.margin_large
                     Layout.alignment: Qt.AlignHCenter
                     visible: player.videoTracks.count === 0
                     focus: visible
+                    spacing: VLCStyle.margin_xxsmall
                     navigationParent: rootPlayer
                     KeyNavigation.up: topcontrolView
                     KeyNavigation.down: controlBarView
 
                     model: ObjectModel {
                         Widgets.IconToolButton {
-                            size: VLCStyle.icon_medium
+                            size: VLCIcons.pixelSize(VLCStyle.icon_large)
                             iconText: VLCIcons.skip_back
                             onClicked: player.jumpBwd()
                             text: i18n.qtr("Step back")
@@ -414,7 +415,7 @@ Widgets.NavigableFocusScope {
                         }
 
                         Widgets.IconToolButton {
-                            size: VLCStyle.icon_medium
+                            size: VLCIcons.pixelSize(VLCStyle.icon_large)
                             iconText: VLCIcons.visualization
                             onClicked: player.toggleVisualization()
                             text: i18n.qtr("Visualization")
@@ -422,7 +423,7 @@ Widgets.NavigableFocusScope {
                         }
 
                         Widgets.IconToolButton{
-                            size: VLCStyle.icon_medium
+                            size: VLCIcons.pixelSize(VLCStyle.icon_large)
                             iconText: VLCIcons.skip_for
                             onClicked: player.jumpFwd()
                             text: i18n.qtr("Step forward")
-- 
2.25.1



More information about the vlc-devel mailing list