Show each frame's flag and stars on the develop roll
FR-UI-5's 2026-09-19 amendment asks for the rating and flag wherever they can be set and on the roll's cells, so that stepping along a set in develop shows what has been judged. The roll drew thumbnails only, so the keys that now judge the open photograph left no trace on its neighbours. Each roll cell carries a small badge with a tick or a cross and a star count, drawn only when there is something to show, in shapes and a number rather than colours (NFR-A11Y-3).
This commit is contained in:
@@ -1029,6 +1029,39 @@ export component PhotoRoll inherits Rectangle {
|
||||
visible: cell.has-thumb;
|
||||
}
|
||||
|
||||
// TRACES: FR-UI-5 | FR-CULL-4 | NFR-A11Y-3
|
||||
// The judgement, on the roll as on the grid, so stepping
|
||||
// along a set in develop shows what has been judged
|
||||
// (FR-UI-5, amended 2026-09-19). A tick or a cross and a
|
||||
// star count: shapes and a number, not hues.
|
||||
if cell.flag > 0 || cell.rating > 0: Rectangle {
|
||||
x: 3px;
|
||||
y: 3px;
|
||||
height: 14px;
|
||||
width: marks.preferred-width + 6px;
|
||||
background: Theme.surface.with-alpha(0.85);
|
||||
border-radius: 7px;
|
||||
|
||||
marks := HorizontalLayout {
|
||||
x: 3px;
|
||||
spacing: 2px;
|
||||
alignment: start;
|
||||
|
||||
if cell.flag > 0: Icon {
|
||||
name: cell.flag == 2 ? "cross" : "check";
|
||||
ink: cell.flag == 2 ? Theme.warn-ink : Theme.active;
|
||||
size: 9px;
|
||||
y: (parent.height - self.height) / 2;
|
||||
}
|
||||
if cell.rating > 0: Text {
|
||||
text: "★" + cell.rating;
|
||||
color: Theme.ink;
|
||||
font-size: 9px;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TouchArea {
|
||||
mouse-cursor: pointer;
|
||||
clicked => { root.pick(i); }
|
||||
|
||||
Reference in New Issue
Block a user