fix: match calendar reset btn with next/prev

This commit is contained in:
2 * r + 2 * t 2026-05-01 23:32:51 +10:00
parent e682ee3d33
commit 61738554e5

View file

@ -62,12 +62,18 @@ CustomMouseArea {
StateLayer {
color: Colours.palette.m3primary
radius: Tokens.rounding.full
radius: pressed ? Tokens.rounding.small : Tokens.rounding.large
disabled: {
const now = new Date();
return root.currMonth === now.getMonth() && root.currYear === now.getFullYear();
}
onClicked: root.dashState.currentDate = new Date()
Behavior on radius {
Anim {
type: Anim.DefaultEffects
}
}
}
StyledText {