New setting to disable all UI animations

This commit is contained in:
ItsLemmy
2025-09-27 16:12:28 -04:00
parent 2112f675c0
commit 8b89e95b13
5 changed files with 38 additions and 19 deletions
+24 -11
View File
@@ -104,22 +104,35 @@ ColumnLayout {
// Animation Speed
ColumnLayout {
spacing: Style.marginXXS * scaling
spacing: Style.marginL * scaling
Layout.fillWidth: true
NLabel {
label: I18n.tr("settings.general.ui.animation-speed.label")
description: I18n.tr("settings.general.ui.animation-speed.description")
NToggle {
label: I18n.tr("settings.general.ui.animation-disable.label")
description: I18n.tr("settings.general.ui.animation-disable.description")
checked: Settings.data.general.animationDisabled
onToggled: checked => Settings.data.general.animationDisabled = checked
}
NValueSlider {
ColumnLayout {
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
from: 0.1
to: 2.0
stepSize: 0.01
value: Settings.data.general.animationSpeed
onMoved: value => Settings.data.general.animationSpeed = value
text: Math.round(Settings.data.general.animationSpeed * 100) + "%"
visible: !Settings.data.general.animationDisabled
NLabel {
label: I18n.tr("settings.general.ui.animation-speed.label")
description: I18n.tr("settings.general.ui.animation-speed.description")
}
NValueSlider {
Layout.fillWidth: true
from: 0.1
to: 2.0
stepSize: 0.01
value: Settings.data.general.animationSpeed
onMoved: value => Settings.data.general.animationSpeed = value
text: Math.round(Settings.data.general.animationSpeed * 100) + "%"
}
}
}
}