[vlc-devel] [PATCH 19/29] qml: fix scaling in toolbar editor

Fatih Uzunoglu fuzun54 at outlook.com
Thu Apr 1 22:22:31 UTC 2021


---
 .../gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
index 8ec2dae238..aec3372adb 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
@@ -37,6 +37,9 @@ GridView{
 
     highlightMoveDuration: 0 //ms
 
+    cellWidth: VLCStyle.cover_small
+    cellHeight: cellWidth
+
     property alias removeInfoRectVisible: removeInfoRect.visible
 
     DropArea {
@@ -106,8 +109,8 @@ GridView{
         id:dragArea
         objectName: "buttonsList"
         hoverEnabled: true
-        width: VLCStyle.cover_small
-        height: width
+        width: cellWidth
+        height: cellHeight
 
         property bool held: false
         property int mIndex: controlButtons.buttonL[model.index].id
-- 
2.27.0



More information about the vlc-devel mailing list