diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-16 08:56:38 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-16 08:56:38 -0500 |
| commit | 63d680404f82a80a820a0273409bd52ee3cf2b00 (patch) | |
| tree | dd750520f99b26af5745da23def8effc7265c72d /modules/controlcenter/appearance | |
| parent | controlcenter: wallpaper selector (diff) | |
| download | caelestia-shell-63d680404f82a80a820a0273409bd52ee3cf2b00.tar.gz caelestia-shell-63d680404f82a80a820a0273409bd52ee3cf2b00.tar.bz2 caelestia-shell-63d680404f82a80a820a0273409bd52ee3cf2b00.zip | |
controlcenter: font slider min-max
Diffstat (limited to '')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 11eb2b0..e91448e 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -788,7 +788,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.7; top: 1.5 } Component.onCompleted: { text = (rootPane.fontSizeScale).toFixed(1); @@ -797,7 +797,7 @@ RowLayout { onTextChanged: { if (activeFocus) { const val = parseFloat(text); - if (!isNaN(val) && val >= 0.1 && val <= 5.0) { + if (!isNaN(val) && val >= 0.7 && val <= 1.5) { rootPane.fontSizeScale = val; rootPane.saveConfig(); } @@ -805,7 +805,7 @@ RowLayout { } onEditingFinished: { const val = parseFloat(text); - if (isNaN(val) || val < 0.1 || val > 5.0) { + if (isNaN(val) || val < 0.7 || val > 1.5) { text = (rootPane.fontSizeScale).toFixed(1); } } @@ -825,8 +825,8 @@ RowLayout { Layout.fillWidth: true implicitHeight: Appearance.padding.normal * 3 - from: 0.1 - to: 5.0 + from: 0.7 + to: 1.5 value: rootPane.fontSizeScale onMoved: { rootPane.fontSizeScale = fontSizeSlider.value; |