sparkline: unified coloring - vertical gradient from colorAt/thresholds, stroke line, 1px border, consistent 32px height

This commit is contained in:
Damocles 2026-04-25 10:40:51 +02:00
parent e1d20c2407
commit c64373313d
6 changed files with 90 additions and 93 deletions

View file

@ -109,11 +109,10 @@ Column {
anchors.leftMargin: 12
anchors.right: parent.right
anchors.rightMargin: 12
height: 40
height: 32
history: root.history
color: root.stateColor
strokeColor: root.accentColor
active: root.active
backgroundTint: 0.08
thresholds: [
{
value: root.warm,
@ -124,7 +123,6 @@ Column {
color: S.Theme.base08
}
]
colorFunction: v => v > root.hot ? S.Theme.base08 : v > root.warm ? S.Theme.base0A : root.stateColor
}
// Threshold labels