Distinguish events created from breaks with blue row styling

This commit is contained in:
Dandaedre 2026-11-05 12:14:13 +01:00
parent 639886b864
commit 66f2d49096
2 changed files with 11 additions and 1 deletions

View File

@ -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"
};

View File

@ -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.