From 66f2d4909639ed03ab9c99f17a228810814695bd Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 5 Nov 2026 12:14:13 +0100 Subject: [PATCH] Distinguish events created from breaks with blue row styling --- crates/rundown-converter/src/gui/review.rs | 8 ++++++++ docs/rundown-converter.md | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/rundown-converter/src/gui/review.rs b/crates/rundown-converter/src/gui/review.rs index 0e37ecf..5579786 100644 --- a/crates/rundown-converter/src/gui/review.rs +++ b/crates/rundown-converter/src/gui/review.rs @@ -84,6 +84,7 @@ fn timing_hint(value: &str, example: &str) -> String { const PREVIEW_SUCCESS: Color32 = Color32::from_rgb(115, 205, 150); const PREVIEW_AMBER: Color32 = Color32::from_rgb(235, 190, 95); const PREVIEW_GAP: Color32 = Color32::from_rgb(110, 200, 215); +const PREVIEW_BREAK_EVENT: Color32 = Color32::from_rgb(135, 180, 245); const PREVIEW_PENDING: Color32 = Color32::from_rgb(176, 155, 245); const PREVIEW_RED: Color32 = Color32::from_rgb(245, 125, 120); const PREVIEW_INFERRED: Color32 = Color32::from_rgb(165, 172, 184); @@ -2223,6 +2224,7 @@ impl App { ui.colored_label(PREVIEW_AMBER, "Unresolved"); ui.colored_label(PREVIEW_RED, "Error"); ui.colored_label(PREVIEW_GAP, "Gap / allocated interval"); + ui.colored_label(PREVIEW_BREAK_EVENT, "Event from break"); ui.colored_label(PREVIEW_INFERRED, "Inferred timing"); ui.weak("✎ modified"); ui.weak("Ignored"); @@ -2360,6 +2362,8 @@ impl App { Some(Color32::from_rgb(52, 43, 27)) } else if row.gap { Some(Color32::from_rgb(25, 49, 55)) + } else if row.kind == "event" && row.gap_key.is_some() { + Some(Color32::from_rgb(29, 43, 68)) } else { None } @@ -2419,6 +2423,8 @@ impl App { PREVIEW_AMBER } else if row.gap { PREVIEW_GAP + } else if row.kind == "event" && row.gap_key.is_some() { + PREVIEW_BREAK_EVENT } else { ui.visuals().text_color() }; @@ -2563,6 +2569,8 @@ impl App { &row.kind } else if row.kind == "marker" { "Marker" + } else if row.kind == "event" && row.gap_key.is_some() { + "Event created from break" } else { "Timed" }; diff --git a/docs/rundown-converter.md b/docs/rundown-converter.md index 158b054..6a04d23 100644 --- a/docs/rundown-converter.md +++ b/docs/rundown-converter.md @@ -107,7 +107,9 @@ visually distinct from labels and ordinary actions; the active tab uses the stro intervening gaps or markers, overlaps, and unknown boundaries block the resolution with an actionable error. No partial adjustment is applied for an unavailable resolution. Apply & recheck updates the preview and both Ontime JSON and XLSX exports. Generated - events and redistributed intervals remain accessible under Gaps for review and undo. + events use a distinct blue row tint and title colour, identified by **Event from break** + in the legend; untimed gaps remain teal. Errors and pending changes retain their + priority colours. Created events and redistributed intervals remain accessible under Gaps for review and undo. Choose Keep gap **and turn distribution off** to restore the original interval. Choices persist in `gap_resolutions`; `gap_options` holds `distribute`, `count`, `direction` (`previous` or `following`) and `title`, keyed by the original gap key.