Use portable modified row marker

This commit is contained in:
Dandaedre 2026-11-03 17:39:03 +01:00
parent 35c7a90841
commit 5c36132c79
1 changed files with 4 additions and 4 deletions

View File

@ -1536,7 +1536,7 @@ impl App {
ui.colored_label(PREVIEW_RED, "Error");
ui.colored_label(PREVIEW_GAP, "Gap / allocated interval");
ui.colored_label(PREVIEW_INFERRED, "Inferred timing");
ui.weak("✎ modified");
ui.weak("* modified");
ui.weak("Ignored");
ui.small("? unknown · edits require recheck");
});
@ -1678,7 +1678,7 @@ impl App {
ui.add(
egui::Label::new(RichText::new(format!("{}{}",
if row.row == 0 { "Gap".into() } else { row.row.to_string() },
if modified { " ✎" } else { "" }
if modified { " *" } else { "" }
)).color(color))
.sense(egui::Sense::click()),
)
@ -2085,7 +2085,7 @@ mod tests {
"add_to_next"
);
let labels = render(&mut app, &ctx, [860.0, 900.0], vec![]);
assert!(labels.iter().any(|(text, _)| text == "Gap ✎"));
assert!(labels.iter().any(|(text, _)| text == "Gap *"));
let a = pipeline::analyze(&app.tables[0], &profile, &AtomicBool::new(false), |_, _| {});
assert!(a.rundown.as_ref().unwrap().gaps.is_empty());
let rows = preview_rows(&a, Some(&app.tables[0]));
@ -2736,7 +2736,7 @@ mod tests {
assert_eq!(profile.durations[&2], "2 min");
assert!(app.dirty);
let labels = render(&mut app, &ctx, size, vec![]);
assert!(labels.iter().any(|(text, _)| text == "2 ✎"));
assert!(labels.iter().any(|(text, _)| text == "2 *"));
let close = labels
.iter()
.find(|(s, _)| s == "Close")