[vlc-devel] [PATCH 1/2] qml: add column width and margin to VLCStyle

jagannatharjun guptaprince8832 at gmail.com
Thu May 14 17:10:26 CEST 2020


---
 modules/gui/qt/style/VLCStyle.qml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 664d83b..3cd9fe0 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -145,6 +145,8 @@ Item {
     property int gridItem_video_height: VLCStyle.video_normal_height + VLCStyle.fontHeight_normal + VLCStyle.fontHeight_small  + VLCStyle.margin_xxsmall * 4
     property int gridItem_video_width: VLCStyle.video_normal_width + VLCStyle.margin_xxsmall * 4
 
+    property int column_width: 114 * scale
+    property int column_margin_width: 32 * scale
 
     //global application margin "safe area"
     property int applicationHorizontalMargin: 0
@@ -164,5 +166,8 @@ Item {
     property url noArtArtist: "qrc:///noart_artist.svg";
     property url noArtArtistSmall: "qrc:///noart_artist_small.svg";
 
+    function colWidth(nb) {
+      return nb * VLCStyle.column_width + ( nb - 1 ) * VLCStyle.column_margin_width;
+    }
 
 }
-- 
2.25.1



More information about the vlc-devel mailing list