feat: Optimize capsule color computation by using Style.qml property

This commit is contained in:
loner
2025-11-17 11:05:58 +08:00
parent a201b8a2c8
commit 24b8eeb1f4
22 changed files with 26 additions and 23 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ Item {
width: isVertical ? Style.capsuleHeight : parent.width
height: isVertical ? parent.height : Style.capsuleHeight
radius: Style.radiusM
color: Settings.data.bar.showCapsule ? Qt.alpha(Color.mSurfaceVariant, Settings.data.bar.capsuleOpacity) : Color.transparent
color: Style.capsuleColor
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter