[vlc-devel] [PATCH 2/2] qml: Aspectratio widget size changes

Rohan Rajpal rohan17089 at iiitd.ac.in
Mon Jul 29 12:54:44 CEST 2019


Remove hardcoding from aspect ratio widget.
---
 modules/gui/qt/qml/player/ControlButtons.qml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/qml/player/ControlButtons.qml b/modules/gui/qt/qml/player/ControlButtons.qml
index 835ca01ccf..b70cd41fa8 100644
--- a/modules/gui/qt/qml/player/ControlButtons.qml
+++ b/modules/gui/qt/qml/player/ControlButtons.qml
@@ -399,10 +399,9 @@ Item{
     Component{
         id: aspectRatioDelegate
         Utils.ComboBoxExt {
-            id: combo
             Layout.alignment: Qt.AlignVCenter
-            height: 28 * scale
-            width: 100 * scale
+            width: VLCStyle.combobox_width_normal
+            height: VLCStyle.combobox_height_normal
             textRole: "display"
             model: player.aspectRatio
             onCurrentIndexChanged: model.toggleIndex(currentIndex)
-- 
2.17.1



More information about the vlc-devel mailing list