diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-19 22:18:10 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-19 22:18:10 -0500 |
| commit | bf3a1781d12271a7edb9ead26eb59740f87877fd (patch) | |
| tree | 9e4291b5386cdf4905e1c60970e08d7cf85ac9c1 /modules/controlcenter/appearance/sections/AnimationsSection.qml | |
| parent | refactor: replaced input fields with SliderInput components (diff) | |
| download | caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.gz caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.bz2 caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.zip | |
refactor: reorganized AppearancePane sections into dedicated components
Diffstat (limited to 'modules/controlcenter/appearance/sections/AnimationsSection.qml')
| -rw-r--r-- | modules/controlcenter/appearance/sections/AnimationsSection.qml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/controlcenter/appearance/sections/AnimationsSection.qml b/modules/controlcenter/appearance/sections/AnimationsSection.qml new file mode 100644 index 0000000..03fc2b1 --- /dev/null +++ b/modules/controlcenter/appearance/sections/AnimationsSection.qml @@ -0,0 +1,42 @@ +pragma ComponentBehavior: Bound + +import ".." +import "../../components" +import qs.components +import qs.components.controls +import qs.components.containers +import qs.services +import qs.config +import QtQuick +import QtQuick.Layouts + +CollapsibleSection { + id: root + + required property var rootPane + + title: qsTr("Animations") + showBackground: true + + SectionContainer { + contentSpacing: Appearance.spacing.normal + + SliderInput { + Layout.fillWidth: true + + label: qsTr("Animation duration scale") + value: rootPane.animDurationsScale + from: 0.1 + to: 5.0 + decimals: 1 + suffix: "×" + validator: DoubleValidator { bottom: 0.1; top: 5.0 } + + onValueModified: (newValue) => { + rootPane.animDurationsScale = newValue; + rootPane.saveConfig(); + } + } + } +} + |