forked from Shinonome/dots-hyprland
add animation to 'rotating' date style
This commit is contained in:
@@ -20,7 +20,7 @@ Item {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
rotation: {
|
rotation: {
|
||||||
if (!Config.options.time.secondPrecision) return 0;
|
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
|
opacity: root.style === "rotating" ? 1.0 : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user