fix: match calendar reset btn with next/prev
This commit is contained in:
parent
e682ee3d33
commit
61738554e5
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue