diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-15 21:05:50 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-15 21:05:50 -0500 |
| commit | f2e9f60344a2185d244c8eda962bb2f4e9917be0 (patch) | |
| tree | 08f675b6adee5f5c448537b8f776d22283404f5a /modules | |
| parent | config: added save to singleton, updated relevant settings panes (diff) | |
| download | caelestia-shell-f2e9f60344a2185d244c8eda962bb2f4e9917be0.tar.gz caelestia-shell-f2e9f60344a2185d244c8eda962bb2f4e9917be0.tar.bz2 caelestia-shell-f2e9f60344a2185d244c8eda962bb2f4e9917be0.zip | |
controlcenter: max padding now 2
Diffstat (limited to '')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 22e5580..37397ae 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -912,7 +912,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.paddingScale).toFixed(1); @@ -921,7 +921,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.paddingScale = val; rootPane.saveConfig(); } @@ -929,7 +929,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.paddingScale).toFixed(1); } } @@ -950,7 +950,7 @@ RowLayout { implicitHeight: Appearance.padding.normal * 3 from: 0.1 - to: 5.0 + to: 2.0 value: rootPane.paddingScale onMoved: { rootPane.paddingScale = paddingSlider.value; |