1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 08:42:13 -04:00

fix(settings): fix animation speed binding in notifications tab

fixes #1974
This commit is contained in:
bbedward
2026-03-12 11:43:33 -04:00
parent 476256c9e7
commit d445d182ea

View File

@@ -20,7 +20,10 @@ Item {
var out = []; var out = [];
for (var i = 0; i < rules.length; i++) { for (var i = 0; i < rules.length; i++) {
if ((rules[i].action || "").toString().toLowerCase() === "mute") if ((rules[i].action || "").toString().toLowerCase() === "mute")
out.push({ rule: rules[i], index: i }); out.push({
rule: rules[i],
index: i
});
} }
return out; return out;
} }
@@ -349,6 +352,7 @@ Item {
} }
SettingsSliderRow { SettingsSliderRow {
id: animationDurationSlider
settingKey: "notificationCustomAnimationDuration" settingKey: "notificationCustomAnimationDuration"
tags: ["notification", "animation", "duration", "custom", "speed"] tags: ["notification", "animation", "duration", "custom", "speed"]
text: I18n.tr("Duration") text: I18n.tr("Duration")
@@ -364,6 +368,13 @@ Item {
} }
SettingsData.set("notificationCustomAnimationDuration", newValue); SettingsData.set("notificationCustomAnimationDuration", newValue);
} }
Connections {
target: Theme
function onNotificationAnimationBaseDurationChanged() {
animationDurationSlider.value = Theme.notificationAnimationBaseDuration;
}
}
} }
} }
} }