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 {
|
StateLayer {
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
radius: Tokens.rounding.full
|
radius: pressed ? Tokens.rounding.small : Tokens.rounding.large
|
||||||
disabled: {
|
disabled: {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
return root.currMonth === now.getMonth() && root.currYear === now.getFullYear();
|
return root.currMonth === now.getMonth() && root.currYear === now.getFullYear();
|
||||||
}
|
}
|
||||||
onClicked: root.dashState.currentDate = new Date()
|
onClicked: root.dashState.currentDate = new Date()
|
||||||
|
|
||||||
|
Behavior on radius {
|
||||||
|
Anim {
|
||||||
|
type: Anim.DefaultEffects
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue