44 lines
960 B
QML
44 lines
960 B
QML
pragma ComponentBehavior: Bound
|
||
|
||
import ".."
|
||
import "../../components"
|
||
import QtQuick
|
||
import QtQuick.Layouts
|
||
import Caelestia.Config
|
||
import qs.components
|
||
import qs.components.containers
|
||
import qs.components.controls
|
||
import qs.services
|
||
|
||
CollapsibleSection {
|
||
id: root
|
||
|
||
required property var rootPane
|
||
|
||
title: qsTr("Animations")
|
||
showBackground: true
|
||
|
||
SectionContainer {
|
||
contentSpacing: Tokens.spacing.medium
|
||
|
||
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();
|
||
}
|
||
}
|
||
}
|
||
}
|