From d1822fec5c3282eead758b2952ef2958fb56365c Mon Sep 17 00:00:00 2001 From: catsout Date: Wed, 27 Oct 2021 13:25:04 +0800 Subject: [PATCH] plugin: width tweak --- plugin/contents/ui/config.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/contents/ui/config.qml b/plugin/contents/ui/config.qml index 5da87231..300d9f58 100644 --- a/plugin/contents/ui/config.qml +++ b/plugin/contents/ui/config.qml @@ -424,7 +424,7 @@ ColumnLayout { } RowLayout { Kirigami.FormData.label: "Fps:" - Layout.maximumWidth: parent.lwidth + Layout.preferredWidth: displayMode.width Label { Layout.preferredWidth: font.pixelSize * 2 text: sliderFps.value.toString() @@ -438,7 +438,7 @@ ColumnLayout { } Slider { id: sliderFps - Layout.preferredWidth: displayMode.width * 0.9 + Layout.fillWidth: true from: 5 to: 60 stepSize: 1.0 @@ -448,13 +448,14 @@ ColumnLayout { RowLayout { Kirigami.FormData.label: "Volume:" visible: !cfg_MuteAudio + Layout.preferredWidth: displayMode.width Label { Layout.preferredWidth: font.pixelSize * 2 text: sliderVol.value.toString() } Slider { id: sliderVol - Layout.preferredWidth: displayMode.width * 0.9 + Layout.fillWidth: true from: 0 to: 100 stepSize: 5.0