mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
add animation to 'rotating' date style
This commit is contained in:
@@ -20,7 +20,7 @@ Item {
|
||||
height: parent.height
|
||||
rotation: {
|
||||
if (!Config.options.time.secondPrecision) return 0;
|
||||
return secondHandLoader.item.rotation + 45 // +45 degrees to align with minute hand
|
||||
return (secondHandLoader.item.rotation + 45) + (opacity * 360); // +45 degrees to align text's center // (opacity * 360) for open/close anim
|
||||
}
|
||||
|
||||
opacity: root.style === "rotating" ? 1.0 : 0
|
||||
|
||||
Reference in New Issue
Block a user