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
+3
View File
@@ -104,4 +104,7 @@ Singleton {
return Math.round(barHeight * 0.82);
}
}
readonly property color capsuleColor: Settings.data.bar.showCapsule ?
Qt.alpha(Color.mSurfaceVariant, Settings.data.bar.capsuleOpacity) :
Color.transparent
}