Skip to content

Qt: alignment issue with safe margins

Setup:

  • apply !3090 (merged) and start vlc with vlc --qt-safe-area=3.5

  • alternatively you can apply this patch for testing

   diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index e714b82630..f80e109c9c 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -236,8 +236,8 @@ QtObject {
     readonly property bool isScreenSmall: appWidth <= smallWidth
 
     //global application margin "safe area"
-    readonly property int applicationHorizontalMargin: 0
-    readonly property int applicationVerticalMargin: 0
+    readonly property int applicationHorizontalMargin: 0.035 * appWidth
+    readonly property int applicationVerticalMargin: 0.035 * appHeight
 
     readonly property int globalToolbar_height: dp(40, scale)
     readonly property int localToolbar_height: dp(48, scale)

The issue:

  • go to Music > Artists > then open an artist

image

  • in the left pane:
    • the background of the list is supposed to fill the column
    • the background of the highlighted element is supposed to go up to the edge of the window
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information