diff --git a/assets/styles/ui/themes/akari.json b/assets/styles/ui/themes/akari.json index 8ad8d3747..87880d728 100644 --- a/assets/styles/ui/themes/akari.json +++ b/assets/styles/ui/themes/akari.json @@ -54,6 +54,9 @@ "dimension_driven": "#6c6863", "error": "#c71529", "field": "#fffdfa", + "file_rail": "#e1ddd8", + "file_rail_hover": "#ebe7e2", + "file_rail_ink": "#13110e", "form_accent": "#5844bc", "form_dim": "#6c6863", "form_error": "#c71529", diff --git a/assets/styles/ui/themes/okibi.json b/assets/styles/ui/themes/okibi.json index 2b8d33481..fe225ade3 100644 --- a/assets/styles/ui/themes/okibi.json +++ b/assets/styles/ui/themes/okibi.json @@ -54,6 +54,9 @@ "dimension_driven": "#8f9296", "error": "#f85052", "field": "#2c2e31", + "file_rail": "#0f1113", + "file_rail_hover": "#222527", + "file_rail_ink": "#e1e3e5", "form_accent": "#a6a2fc", "form_dim": "#8f9296", "form_error": "#ff6060", diff --git a/crates/ui-egui/src/theme_files.rs b/crates/ui-egui/src/theme_files.rs index 1b064af94..caa8217f7 100644 --- a/crates/ui-egui/src/theme_files.rs +++ b/crates/ui-egui/src/theme_files.rs @@ -861,6 +861,19 @@ mod tests { assert_eq!(resolve(&own).file_rail, Color32::from_rgb(0x10, 0x20, 0x30)); } + /// Okibi and Akari spend their ember on one or two marks a screen: the start page's rail is + /// one of their neutrals, not their accent. + #[test] + fn okibi_and_akari_rails_are_neutral() { + for id in ["okibi", "akari"] { + let t = resolve(builtin().iter().find(|t| t.id == id).unwrap()); + for c in [t.file_rail, t.file_rail_hover] { + let [r, g, b, _] = c.to_array(); + assert!(r.max(g).max(b) - r.min(g).min(b) <= 12, "{id}: {c:?} is tinted"); + } + } + } + #[test] fn a_short_file_sets_only_its_colours() { let t = parse(r##"{"format":"solidcraft-theme/1","name":"My Theme!","base":"light","colors":{"panel":"#102030","axis_z":"#0000ff80"}}"##)