fix: improve notif expand btn

This commit is contained in:
2 * r + 2 * t 2026-05-13 01:34:23 +10:00
parent 87cecbded1
commit ecf6c84290

View file

@ -352,6 +352,7 @@ StyledRect {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: -Tokens.padding.extraSmall
implicitWidth: expandIcon.implicitHeight implicitWidth: expandIcon.implicitHeight
implicitHeight: expandIcon.implicitHeight implicitHeight: expandIcon.implicitHeight
@ -366,10 +367,15 @@ StyledRect {
id: expandIcon id: expandIcon
anchors.centerIn: parent anchors.centerIn: parent
anchors.verticalCenterOffset: root.expanded ? -1 : 1
text: "expand_more" text: "expand_more"
fontStyle: Tokens.font.icon.medium fontStyle: Tokens.font.icon.medium
rotation: root.expanded ? 180 : 0 rotation: root.expanded ? 180 : 0
Behavior on anchors.verticalCenterOffset {
Anim {}
}
Behavior on rotation { Behavior on rotation {
Anim {} Anim {}
} }