summaryrefslogtreecommitdiff
path: root/bar/Bar.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-20 15:45:06 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-20 15:45:06 +0800
commit4167bdc70e55926f57e8710b74dc860fd1fc2a1c (patch)
treed9b1e1c9ba912aa7a33c16a9358bd1837c0e052d /bar/Bar.qml
parent3beb5d7ac893f7dc9dca74cde40fa8f1986f51fc (diff)
Rect: use IRect with color animation
Diffstat (limited to 'bar/Bar.qml')
-rw-r--r--bar/Bar.qml20
1 files changed, 17 insertions, 3 deletions
diff --git a/bar/Bar.qml b/bar/Bar.qml
index 4dac781..87ab667 100644
--- a/bar/Bar.qml
+++ b/bar/Bar.qml
@@ -21,7 +21,7 @@ Scope {
}
implicitHeight: child.implicitHeight + Bar.topMargin * 2
- Rectangle {
+ IRect {
id: child
radius: Bar.borderRadius
implicitHeight: Bar.height
@@ -39,12 +39,19 @@ Scope {
color: "transparent"
- Rectangle {
+ IRect {
anchors.left: parent.left
width: leftRow.width + leftRow.anchors.leftMargin - leftSpacer.width
height: leftRow.height
color: Qt.rgba(WallustColors.background.r, WallustColors.background.g, WallustColors.background.b, Bar.bgTransparency)
radius: Bar.moduleRadius
+
+ Behavior on color {
+ ColorAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
}
RowLayout {
@@ -81,12 +88,19 @@ Scope {
}
}
- Rectangle {
+ IRect {
anchors.right: parent.right
width: rightRow.width + rightRow.anchors.rightMargin - rightSpacer.width
height: rightRow.height
color: Qt.rgba(WallustColors.background.r, WallustColors.background.g, WallustColors.background.b, Bar.bgTransparency)
radius: Bar.moduleRadius
+
+ Behavior on color {
+ ColorAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
}
RowLayout {