nscrollview: more fixes

This commit is contained in:
Lemmy
2026-01-25 18:35:56 -05:00
parent 591973ae1e
commit aede9bd13b
10 changed files with 25 additions and 21 deletions
+3 -4
View File
@@ -233,13 +233,12 @@ Variants {
height: 2
color: "transparent"
readonly property real availableWidth: parent.width - (2 * parent.radius)
Rectangle {
id: progressBar
readonly property real progressWidth: cardBackground.width - (2 * cardBackground.radius)
height: parent.height
x: parent.parent.radius + (parent.availableWidth * (1 - model.progress)) / 2
width: parent.availableWidth * model.progress
x: cardBackground.radius + (progressWidth * (1 - model.progress)) / 2
width: progressWidth * model.progress
color: {
var baseColor = model.urgency === 2 ? Color.mError : model.urgency === 0 ? Color.mOnSurface : Color.mPrimary;