[vlc-commits] qml: use Widget labels and change spacing for artist and album text in Max player
Prince Gupta
git at videolan.org
Fri Nov 6 16:00:55 CET 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Oct 19 21:02:02 2020 +0530| [a24066727bc61db5d8e13284c1151b6f3d11ef8e] | committer: Pierre Lamot
qml: use Widget labels and change spacing for artist and album text in Max player
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a24066727bc61db5d8e13284c1151b6f3d11ef8e
---
modules/gui/qt/player/qml/Player.qml | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index 2aabb25864..943a77483a 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -269,7 +269,7 @@ Widgets.NavigableFocusScope {
ColumnLayout {
anchors.fill: parent
- spacing: VLCStyle.margin_small
+ spacing: 0
visible: !rootPlayer.hasEmbededVideo
@@ -321,31 +321,30 @@ Widgets.NavigableFocusScope {
}
}
- Label {
+ Widgets.SubtitleLabel {
id: albumLabel
Layout.fillWidth: true
Layout.preferredHeight: implicitHeight
- Layout.alignment: Qt.AlignHCenter
+ Layout.topMargin: VLCStyle.margin_normal
text: mainPlaylistController.currentItem.album
- font.pixelSize: VLCStyle.fontSize_xxlarge
- font.bold: true
+ font.weight: Font.Light
horizontalAlignment: Text.AlignHCenter
color: VLCStyle.colors.playerFg
Accessible.description: i18n.qtr("album")
}
- Label {
+ Widgets.MenuLabel {
id: artistLabel
Layout.fillWidth: true
Layout.preferredHeight: implicitHeight
- Layout.alignment: Qt.AlignHCenter
+ Layout.topMargin: VLCStyle.margin_xxsmall
text: mainPlaylistController.currentItem.artist
+ font.weight: Font.Light
horizontalAlignment: Text.AlignHCenter
- font.pixelSize: VLCStyle.fontSize_xlarge
color: VLCStyle.colors.playerFg
Accessible.description: i18n.qtr("artist")
}
More information about the vlc-commits
mailing list