diff --git a/ui/dr-ui/ui/settings.slint b/ui/dr-ui/ui/settings.slint index a7bf951..e9ecc9d 100644 --- a/ui/dr-ui/ui/settings.slint +++ b/ui/dr-ui/ui/settings.slint @@ -247,7 +247,7 @@ component EntryRow inherits VerticalLayout { // 1 (it finished, and a full bar is noise) or frozen part-way (it failed, and // a bar sitting at 60% invites the reading "still going"). component ActivityItem inherits VerticalLayout { - in property row; + in property job; spacing: 4px; @@ -255,29 +255,29 @@ component ActivityItem inherits VerticalLayout { spacing: Theme.gap; Label { - text: root.row.title; + text: root.job.title; body: true; // Faded once it is over: the list is ordered running-first, and // this is what makes that ordering visible at a glance rather than // something the reader has to work out from the text. - opacity: root.row.running ? 1.0 : 0.6; + opacity: root.job.running ? 1.0 : 0.6; } Caption { - text: root.row.detail; + text: root.job.detail; // A failure is the one thing here worth a colour (NFR-A11Y-3 is // satisfied by the words, which say what failed; the hue only // finds them faster). - warn: root.row.failed; + warn: root.job.failed; horizontal-alignment: right; horizontal-stretch: 1; overflow: elide; } } - if root.row.running: ProgressBar { - indeterminate: !root.row.determinate; - fraction: root.row.fraction; + if root.job.running: ProgressBar { + indeterminate: !root.job.determinate; + fraction: root.job.fraction; } } @@ -486,7 +486,7 @@ export component SettingsPage inherits Rectangle { } for row in root.activity-rows: ActivityItem { - row: row; + job: row; } if root.activity-kept > 0: Rectangle {