From 699d7ef7fcabe7e38243143a3f1aab7fa55ad8c0 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Sat, 15 Nov 2025 21:24:48 -0500 Subject: controlcenter: padding and spacing scale min-max --- modules/controlcenter/appearance/AppearancePane.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/controlcenter/appearance/AppearancePane.qml') diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 459f4c1..1e4ff0d 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -892,7 +892,7 @@ RowLayout { anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignHCenter - validator: DoubleValidator { bottom: 0.1; top: 2.0 } + validator: DoubleValidator { bottom: 0.5; top: 2.0 } Component.onCompleted: { text = (rootPane.paddingScale).toFixed(1); @@ -901,7 +901,7 @@ RowLayout { onTextChanged: { if (activeFocus) { const val = parseFloat(text); - if (!isNaN(val) && val >= 0.1 && val <= 2.0) { + if (!isNaN(val) && val >= 0.5 && val <= 2.0) { rootPane.paddingScale = val; rootPane.saveConfig(); } @@ -909,7 +909,7 @@ RowLayout { } onEditingFinished: { const val = parseFloat(text); - if (isNaN(val) || val < 0.1 || val > 2.0) { + if (isNaN(val) || val < 0.5 || val > 2.0) { text = (rootPane.paddingScale).toFixed(1); } } @@ -929,7 +929,7 @@ RowLayout { Layout.fillWidth: true implicitHeight: Appearance.padding.normal * 3 - from: 0.1 + from: 0.5 to: 2.0 value: rootPane.paddingScale onMoved: { @@ -1090,7 +1090,7 @@ RowLayout { anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignHCenter - validator: DoubleValidator { bottom: 0.1; top: 5.0 } + validator: DoubleValidator { bottom: 0.1; top: 2.0 } Component.onCompleted: { text = (rootPane.spacingScale).toFixed(1); @@ -1099,7 +1099,7 @@ RowLayout { onTextChanged: { if (activeFocus) { const val = parseFloat(text); - if (!isNaN(val) && val >= 0.1 && val <= 5.0) { + if (!isNaN(val) && val >= 0.1 && val <= 2.0) { rootPane.spacingScale = val; rootPane.saveConfig(); } @@ -1107,7 +1107,7 @@ RowLayout { } onEditingFinished: { const val = parseFloat(text); - if (isNaN(val) || val < 0.1 || val > 5.0) { + if (isNaN(val) || val < 0.1 || val > 2.0) { text = (rootPane.spacingScale).toFixed(1); } } @@ -1128,7 +1128,7 @@ RowLayout { implicitHeight: Appearance.padding.normal * 3 from: 0.1 - to: 5.0 + to: 2.0 value: rootPane.spacingScale onMoved: { rootPane.spacingScale = spacingSlider.value; -- cgit v1.2.3-freya