feat: make animation duration a var
This commit is contained in:
parent
cb0a2b8987
commit
269c9e1953
4 changed files with 8 additions and 6 deletions
|
@ -59,5 +59,5 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal date-visible
|
:reveal date-visible
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(date)))
|
(date)))
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal powermenu-visible
|
:reveal powermenu-visible
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(powermenu)
|
(powermenu)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal osk-ts
|
:reveal osk-ts
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(osk-toggle-on)
|
(osk-toggle-on)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal tablet-ts
|
:reveal tablet-ts
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(tablet-toggle-on)
|
(tablet-toggle-on)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal heart-ts
|
:reveal heart-ts
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(heart-toggle-on)
|
(heart-toggle-on)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "crossfade"
|
:transition "crossfade"
|
||||||
:reveal notif-panel-state
|
:reveal notif-panel-state
|
||||||
:duration "550ms"
|
:duration anim_duration
|
||||||
(notif-panel-on)
|
(notif-panel-on)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
(deflisten br_icon "$EWW_PATH/brightness.sh icon")
|
(deflisten br_icon "$EWW_PATH/brightness.sh icon")
|
||||||
(defpoll br :interval "1s" "$EWW_PATH/brightness.sh br")
|
(defpoll br :interval "1s" "$EWW_PATH/brightness.sh br")
|
||||||
|
|
||||||
|
(defvar anim_duration "550ms")
|
||||||
|
|
||||||
(defpoll completeday :interval "1h" "date '+%A, %d %B'")
|
(defpoll completeday :interval "1h" "date '+%A, %d %B'")
|
||||||
(defpoll lithour :interval "30m" "date +%H")
|
(defpoll lithour :interval "30m" "date +%H")
|
||||||
(defpoll litmin :interval "30s" "date +%M")
|
(defpoll litmin :interval "30s" "date +%M")
|
||||||
|
|
Loading…
Reference in a new issue