summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-14 23:22:17 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-14 23:22:17 +0800
commit4f23c7746a1fc310db93d34711aa526b21f654b3 (patch)
treeb9dd9bf0fa72a85d1c82db3042397287fff8c190
parentec774a534d631f57ace0eb633dd64ed2f55ed8a6 (diff)
more animation
-rw-r--r--bar/Mpris.qml1
-rw-r--r--components/IText.qml6
-rw-r--r--config/Bar.qml2
3 files changed, 5 insertions, 4 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml
index 1e740ac..b87c003 100644
--- a/bar/Mpris.qml
+++ b/bar/Mpris.qml
@@ -68,6 +68,7 @@ Item {
text: root.state
}
IText {
+ animate: true
text: root.cleanedTitle
}
}
diff --git a/components/IText.qml b/components/IText.qml
index c854f74..916b867 100644
--- a/components/IText.qml
+++ b/components/IText.qml
@@ -7,10 +7,8 @@ Text {
id: root
property bool animate: false
- property string animateProp: "scale"
property real animateFrom: 0
property real animateTo: 1
- property int animateDuration: Style.anim.durations.normal
renderType: Text.NativeRendering
textFormat: Text.PlainText
@@ -48,8 +46,8 @@ Text {
component Anim: NumberAnimation {
target: root
- property: root.animateProp
- duration: root.animateDuration / 2
+ property: General.animateProp
+ duration: General.animateDuration / 4
easing.type: Easing.BezierSpline
}
}
diff --git a/config/Bar.qml b/config/Bar.qml
index 198ae4f..a038352 100644
--- a/config/Bar.qml
+++ b/config/Bar.qml
@@ -17,6 +17,8 @@ Singleton {
readonly property int leftModuleSpacing: Style.spacing.smaller
readonly property int rightModuleSpacing: Style.spacing.smaller
+ readonly property var windowStrip: [" — Zen Browser"]
+
readonly property int workspaces: 10
readonly property int workspaceIconSize: 32
readonly property int workspaceSpacing: 2