feat: graphs now properly sized + port static graphs to c++
This commit is contained in:
@@ -101,6 +101,7 @@ orientation: Qt.Vertical
|
||||
line1Color: card.accent
|
||||
line1FillAlpha: 0.15
|
||||
maxValue: 1.0
|
||||
slideInterval: Config.dashboard.resourceUpdateInterval
|
||||
slideProgress: 1
|
||||
|
||||
Connections {
|
||||
@@ -114,9 +115,14 @@ orientation: Qt.Vertical
|
||||
NumberAnimation {
|
||||
id: slideAnim
|
||||
|
||||
// Only drives frames; the slide phase is the sample
|
||||
// clock inside SparklineItem. It must not stop at the
|
||||
// end of a cycle, or the newest value is held on the
|
||||
// clipped edge until the next sample arrives.
|
||||
duration: Config.dashboard.resourceUpdateInterval
|
||||
easing.type: Easing.Linear
|
||||
from: 0
|
||||
loops: Animation.Infinite
|
||||
property: "slideProgress"
|
||||
target: sparkline
|
||||
to: 1
|
||||
|
||||
Reference in New Issue
Block a user