[vlc-commits] qml: use SubtitleLabel for header of Videos Grid view and align headers texts with content
Prince Gupta
git at videolan.org
Tue Aug 18 17:14:51 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jul 31 01:15:42 2020 +0530| [d57038da1d66ea9298c8bf813cae15d6d00dfd1d] | committer: Pierre Lamot
qml: use SubtitleLabel for header of Videos Grid view and align headers texts with content
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d57038da1d66ea9298c8bf813cae15d6d00dfd1d
---
modules/gui/qt/medialibrary/qml/VideoDisplay.qml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
index f15f63fd47..867897b719 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -145,10 +145,12 @@ Widgets.NavigableFocusScope {
delegateModel: selectionModel
model: videoModel
- headerDelegate: Widgets.LabelSeparator {
- id: videosSeparator
- width: videosGV.width
+ headerDelegate: Widgets.SubtitleLabel {
text: i18n.qtr("Videos")
+ leftPadding: videosGV.rowX
+ topPadding: VLCStyle.margin_large
+ bottomPadding: VLCStyle.margin_normal
+ width: root.width
}
delegate: VideoGridItem {
More information about the vlc-commits
mailing list