ags: add config option for gtk anim duration

This commit is contained in:
end-4
2024-03-04 22:35:07 +07:00
parent 132bc97c83
commit f5885e444c
26 changed files with 60 additions and 87 deletions
+5 -5
View File
@@ -67,7 +67,7 @@ const todoListItem = (task, id, isDone, isEven = false) => {
const widgetRevealer = Widget.Revealer({
revealChild: true,
transition: 'slide_down',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationLarge,
child: todoContent,
})
return widgetRevealer;
@@ -112,7 +112,7 @@ const todoItems = (isDone) => Widget.Scrollable({
const UndoneTodoList = () => {
const newTaskButton = Revealer({
transition: 'slide_left',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
revealChild: true,
child: Button({
className: 'txt-small sidebar-todo-new',
@@ -131,7 +131,7 @@ const UndoneTodoList = () => {
});
const cancelAddTask = Revealer({
transition: 'slide_right',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
revealChild: false,
child: Button({
className: 'txt-norm icon-material sidebar-todo-add',
@@ -162,13 +162,13 @@ const UndoneTodoList = () => {
});
const newTaskEntryRevealer = Revealer({
transition: 'slide_right',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
revealChild: false,
child: newTaskEntry,
});
const confirmAddTask = Revealer({
transition: 'slide_right',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
revealChild: false,
child: Button({
className: 'txt-norm icon-material sidebar-todo-add',