forge
Explore
Log in

Don't you dare go Hollow

Four more palettes, on the same measured floors

Browse files at this commit

3c6b5d97b1a4e4bf5abf1954aff9fa82a8bb8f7cAhmet Kaan GümüşParent: bbe4e40
  • feat
    • four more palettes, on the same measured floors
Show full message
✨ feat(ui): four more palettes, on the same measured floors

The set grows to six: forest (green ground,
emerald), violet (indigo ground, lavender), rose (neutral ground, one
rose accent and no other hue), amber (graphite ground, gold). Cool and
warm are untouched.

All six are dark on purpose. Colour work is judged against its
surround, and a light ground pushes every clip body and every graded
frame the wrong way, which is why no editor of this kind ships one.

None of them is picked by eye alone. The contrast guards already ran
over `PaletteId::ALL`, and the two tint guards do now as well -- four
swatches tuned on one ground are exactly where a pair lands inside the
margin on another. Every family clears the same floors the first two
did: dim ink at 4.5:1 on its own raised surface and on a picked row,
both inks on every clip body, the playhead 3:1 against the bed and
against a video clip. Where a family could not clear one, the colour
moved rather than the threshold -- forest's audio clip went darker,
amber's picked row went to a bronze, and amber's focus ring went sky
because gold is that family's accent and the keyboard's ring may never
be mistaken for it.
crates/app/src/main.rsmodified+29 -13
@@ -15255,6 +15255,15 @@ mod tests {
1525515255 // -- the one every session has -- wore the panel's own background and
1525615256 // had no visible swatch at all.
1525715257 assert_ne!(source_tint(0), BG_RAISED());
15258+ // ...in every family, since the swatch is drawn on whichever panel is
15259+ // in force (`ui::theme`) and a tint that vanished into one of them is a
15260+ // file with no colour at all.
15261+ for id in crate::ui::theme::PaletteId::ALL {
15262+ let p = id.palette();
15263+ for (i, &tint) in p.SOURCE_TINTS.iter().enumerate() {
15264+ assert_ne!(tint, p.BG_RAISED, "{id:?} tint {i} is the panel");
15265+ }
15266+ }
1525815267 // Neighbouring sources must not share one, or an import is invisible.
1525915268 assert_ne!(source_tint(0), source_tint(1));
1526015269 assert_ne!(source_tint(1), source_tint(2));
@@ -15281,23 +15290,30 @@ mod tests {
1528115290 })
1528215291 .sum::<u32>()
1528315292 };
15284- for (i, &tint) in SOURCE_TINTS().iter().enumerate() {
15285- assert!(
15286- apart(tint, BG_RAISED()) >= 16,
15287- "tint {i} is {} from the panel it sits on",
15288- apart(tint, BG_RAISED())
15289- );
15290- for (j, &other) in SOURCE_TINTS().iter().enumerate().skip(i + 1) {
15293+ // Every family, not the one in force: a palette is picked at runtime
15294+ // now, and four tints tuned by eye on one ground are exactly where a
15295+ // pair lands inside the margin on another.
15296+ for id in crate::ui::theme::PaletteId::ALL {
15297+ let p = id.palette();
15298+ for (i, &tint) in p.SOURCE_TINTS.iter().enumerate() {
1529115299 assert!(
15292- apart(tint, other) >= 16,
15293- "tints {i} and {j} are only {} apart",
15294- apart(tint, other)
15300+ apart(tint, p.BG_RAISED) >= 16,
15301+ "{id:?} tint {i} is {} from the panel it sits on",
15302+ apart(tint, p.BG_RAISED)
1529515303 );
15304+ for (j, &other) in p.SOURCE_TINTS.iter().enumerate().skip(i + 1) {
15305+ assert!(
15306+ apart(tint, other) >= 16,
15307+ "{id:?} tints {i} and {j} are only {} apart",
15308+ apart(tint, other)
15309+ );
15310+ }
1529615311 }
15312+ // The two a person sees side by side first must be further apart
15313+ // than the floor: source 0 and source 1 are the first import and
15314+ // the second.
15315+ assert!(apart(p.SOURCE_TINTS[0], p.SOURCE_TINTS[1]) >= 32, "{id:?}");
1529715316 }
15298- // The two a person sees side by side first must be further apart than
15299- // the floor: source 0 and source 1 are the first import and the second.
15300- assert!(apart(SOURCE_TINTS()[0], SOURCE_TINTS()[1]) >= 32);
1530115317 }
1530215318
1530315319 /// A `.srt` dropped on the window is nobody's stream: it has no source
crates/app/src/ui/theme.rsmodified+315 -20
@@ -6,20 +6,27 @@
66 //! *role*, never the shade -- `bg/panel`, not "the dark grey" -- so the palette
77 //! can be swapped whole without touching a single element.
88 //!
9-//! Which is what the two modules below are for. Both families carry the same
10-//! role names, so the switch between them is one field lookup and no call site
11-//! knows it happened -- and a role missing from either is a compile error
12-//! rather than a region that quietly kept the old colour.
9+//! Which is what the modules below are for. Every family carries the same role
10+//! names, so the switch between them is one field lookup and no call site knows
11+//! it happened -- and a role missing from any of them is a compile error rather
12+//! than a region that quietly kept the old colour.
1313 //!
1414 //! * `cool` (default) -- near-black ground, cool neutral chrome, one cyan accent.
1515 //! * `warm` -- a deep neutral warmed towards brown so no surface reads as
1616 //! office grey, with one coral accent.
17+//! * `forest` -- a green-tinted ground under one emerald accent.
18+//! * `violet` -- an indigo ground under one lavender accent.
19+//! * `rose` -- a neutral ground the accent alone warms, in rose.
20+//! * `amber` -- a graphite ground under one gold accent.
1721 //!
18-//! Both take the clip bodies from the cross-NLE kind convention (video blue,
19-//! audio green, image teal, text purple) instead of four greys that differ by a
20-//! hair, and both are held to the same measured floors: the contrast guards in
21-//! `main.rs` run against *every* palette in [`PaletteId::ALL`], so a third one
22-//! lands gated rather than untested.
22+//! All six are dark: colour work is judged against its surround, and a light
23+//! ground pushes every clip body and every graded frame the wrong way -- which
24+//! is why no editor of this kind ships one. All six take the clip bodies from
25+//! the cross-NLE kind convention (video blue, audio green, image teal, text
26+//! purple) instead of four greys that differ by a hair, and all six are held to
27+//! the same measured floors: the contrast and tint guards in `main.rs` run
28+//! against *every* palette in [`PaletteId::ALL`], so the seventh lands gated
29+//! rather than untested.
2330 //!
2431 //! Which family is in force is the user's, picked from the toolbar's Theme
2532 //! button or its stroke and kept in `~/.config/edith/theme` beside the
@@ -32,10 +39,15 @@ use engine::project::LaneKind;
3239 use std::path::PathBuf;
3340 use std::sync::atomic::{AtomicUsize, Ordering::Relaxed};
3441
35-/// The whole table, once: every role, its type, and the two families' numbers
36-/// read out of the modules below. One list, so a role added to [`Palette`]
37-/// without a value in both families is a compile error and a role read at a
38-/// paint cannot come from anywhere but the palette in force.
42+/// The whole table, once: every role and its type, gathered from each family's
43+/// module below. One list, so a role added to [`Palette`] without a value in
44+/// every family is a compile error, and a role read at a paint cannot come from
45+/// anywhere but the palette in force.
46+///
47+/// ponytail: the families are spelled out in [`PALETTES`] rather than derived
48+/// from a second list -- `macro_rules!` cannot nest a repetition over families
49+/// inside one over roles, and the escape hatch for that is unstable. Ceiling: a
50+/// seventh family is one line there, one variant in [`PaletteId`], one module.
3951 macro_rules! palette {
4052 ($($name:ident: $ty:ty),+ $(,)?) => {
4153 /// One family's numbers, in a struct so the set can be swapped whole.
@@ -47,9 +59,13 @@ macro_rules! palette {
4759
4860 /// The families in [`PaletteId::ALL`]'s order, so the index the atomic
4961 /// holds is the id itself.
50- static PALETTES: [Palette; 2] = [
62+ static PALETTES: [Palette; PaletteId::ALL.len()] = [
5163 Palette { $($name: cool::$name,)+ },
5264 Palette { $($name: warm::$name,)+ },
65+ Palette { $($name: forest::$name,)+ },
66+ Palette { $($name: violet::$name,)+ },
67+ Palette { $($name: rose::$name,)+ },
68+ Palette { $($name: amber::$name,)+ },
5369 ];
5470
5571 $(
@@ -99,34 +115,57 @@ palette! {
99115 HIST_INK: [u32; 3],
100116 }
101117
102-/// Which family a person picked. An enum and not a bool: two today, and the
103-/// door in the toolbar is a list rather than a toggle because the third one
104-/// must cost a line here and nothing anywhere else.
118+/// Which family a person picked. An enum and not a bool: the door in the
119+/// toolbar is a list rather than a toggle precisely because the next family
120+/// must cost one variant here, one module below, and nothing anywhere else.
105121 #[derive(Clone, Copy, PartialEq, Eq, Debug)]
106122 pub enum PaletteId {
107123 Cool,
108124 Warm,
125+ Forest,
126+ Violet,
127+ Rose,
128+ Amber,
109129 }
110130
111131 impl PaletteId {
112132 /// Display order -- the picker lists them in it, and the index into
113- /// [`PALETTES`] *is* the position in it.
114- pub const ALL: [PaletteId; 2] = [PaletteId::Cool, PaletteId::Warm];
133+ /// [`PALETTES`] *is* the position in it, so this order and that array are
134+ /// the same order or every colour is wrong.
135+ pub const ALL: [PaletteId; 6] = [
136+ PaletteId::Cool,
137+ PaletteId::Warm,
138+ PaletteId::Forest,
139+ PaletteId::Violet,
140+ PaletteId::Rose,
141+ PaletteId::Amber,
142+ ];
115143
116144 /// What the button and the picker row call it.
117145 pub fn label(self) -> &'static str {
118146 match self {
119147 PaletteId::Cool => "Cool",
120148 PaletteId::Warm => "Warm",
149+ PaletteId::Forest => "Forest",
150+ PaletteId::Violet => "Violet",
151+ PaletteId::Rose => "Rose",
152+ PaletteId::Amber => "Amber",
121153 }
122154 }
123155
124156 /// The small print beside the row: what the family actually looks like, so
125- /// the choice is made before the click rather than after it.
157+ /// the choice is made before the click rather than after it. Short enough
158+ /// to sit in the list's right-hand column at the 640x360 floor -- past
159+ /// thirty characters it is truncated mid-word, which is a description that
160+ /// describes nothing.
126161 pub fn detail(self) -> &'static str {
127162 match self {
128163 PaletteId::Cool => "near-black ground, cyan accent",
129164 PaletteId::Warm => "warm ground, coral accent",
165+ PaletteId::Forest => "green ground, emerald",
166+ PaletteId::Violet => "indigo ground, lavender",
167+ PaletteId::Rose => "neutral ground, rose",
168+ PaletteId::Amber => "graphite ground, gold",
130169 }
131170 }
132171
@@ -136,6 +175,10 @@ impl PaletteId {
136175 match self {
137176 PaletteId::Cool => "cool",
138177 PaletteId::Warm => "warm",
178+ PaletteId::Forest => "forest",
179+ PaletteId::Violet => "violet",
180+ PaletteId::Rose => "rose",
181+ PaletteId::Amber => "amber",
139182 }
140183 }
141184
@@ -355,6 +398,258 @@ pub mod warm {
355398 pub const HIST_INK: [u32; 3] = [0xE0_5A_5A, 0x5A_D0_7A, 0x5A_9A_E0];
356399 }
357400
401+/// Family C: the ground itself green, dark enough that a graded frame is still
402+/// the brightest thing on screen, with one emerald accent. The playhead goes
403+/// pink here for the same reason it is pink in `cool`: it crosses the emerald
404+/// and every clip body, so it may belong to none of them.
405+pub mod forest {
406+ // -- surfaces ---------------------------------------------------------------
407+ pub const BG_CANVAS: u32 = 0x080d0a;
408+ pub const BG_PANEL: u32 = 0x121b16;
409+ pub const BG_RAISED: u32 = 0x1e2c24;
410+ pub const BG_TIMELINE: u32 = 0x0b1310;
411+ pub const BG_HOVER: u32 = 0x2c4034;
412+ pub const BG_HOVER_DIM: u32 = 0x1a2620;
413+ /// Deeper than the accent it is made of: the dim ink on a picked row is held
414+ /// to 4.5:1 like every other family's (WCAG 1.4.3), and emerald at surface
415+ /// brightness will not carry it.
416+ pub const BG_SELECTED: u32 = 0x14503a;
417+ pub const SCRIM: u32 = 0x080d0acc;
418+ pub const SCRIM_LIGHT: u32 = 0x080d0a55;
419+
420+ // -- strokes ----------------------------------------------------------------
421+ pub const STROKE_DIVIDER: u32 = 0x25362c;
422+ pub const STROKE_FOCUS: u32 = 0xffd166;
423+ pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
424+
425+ // -- text -------------------------------------------------------------------
426+ pub const FG_PRIMARY: u32 = 0xe7f3eb;
427+ pub const FG_SECONDARY: u32 = 0xa8c4b4;
428+ pub const FG_DISABLED: u32 = 0x6e8579;
429+
430+ // -- interaction ------------------------------------------------------------
431+ pub const ACCENT_PRIMARY: u32 = 0x34d399;
432+ pub const ACCENT_HOVER: u32 = 0x6ee7b7;
433+ pub const ACCENT_PLAYHEAD: u32 = 0xff9db0;
434+ pub const ACCENT_WASH: u32 = 0x34d399aa;
435+
436+ // -- clip kinds (the cross-NLE convention, at this family's weight) ---------
437+ pub const CLIP_VIDEO: u32 = 0x2b5fa8;
438+ /// Darker than the other families' green: on a green ground a clip body has
439+ /// to be the object and the bed the hole, and the dim ink on it still owes
440+ /// 3:1 (WCAG 1.4.11).
441+ pub const CLIP_AUDIO: u32 = 0x256b44;
442+ pub const CLIP_IMAGE: u32 = 0x1a6a6a;
443+ pub const CLIP_TEXT: u32 = 0x6b46c1;
444+
445+ pub const SOURCE_TINTS: [u32; 4] = [0x5fd68f, 0xd6a45f, 0x5fa8d6, 0xc15fd6];
446+
447+ // -- feedback ---------------------------------------------------------------
448+ /// Not the accent family: a success that wore the emerald would say "this is
449+ /// live" in the same colour the whole window says it in.
450+ pub const STATUS_ERROR: u32 = 0xf07171;
451+ pub const STATUS_WARNING: u32 = 0xe3b341;
452+ pub const STATUS_SUCCESS: u32 = 0x7bd88f;
453+ pub const STATUS_PROGRESS: u32 = ACCENT_PRIMARY;
454+ pub const DROP_REFUSE: u32 = 0x7a2a33;
455+
456+ // -- subtitles --------------------------------------------------------------
457+ pub const SUB_FG: u32 = 0xffffff;
458+ pub const SUB_SHADE: u32 = 0x000000cc;
459+
460+ // -- the equalizer graph and the histogram ----------------------------------
461+ pub const EQ_GRID: u32 = 0x25362c;
462+ pub const EQ_SPECTRUM_INK: u32 = 0xa8c4b466;
463+ pub const EQ_FILL_INK: u32 = 0x34d39926;
464+ pub const EQ_BELL_INK: u32 = 0x34d39966;
465+ /// The three channel inks are the picture's own R, G and B: they mean the
466+ /// same thing in every family, so they are the same numbers in every family.
467+ pub const HIST_INK: [u32; 3] = [0xE0_5A_5A, 0x5A_D0_7A, 0x5A_9A_E0];
468+}
469+
470+/// Family D: an indigo ground with one lavender accent -- the cold end of the
471+/// set, where `cool` is neutral-cold and this one is frankly blue. The playhead
472+/// is the yellow that is furthest from everything in it.
473+pub mod violet {
474+ // -- surfaces ---------------------------------------------------------------
475+ pub const BG_CANVAS: u32 = 0x0a0a12;
476+ pub const BG_PANEL: u32 = 0x171827;
477+ pub const BG_RAISED: u32 = 0x252842;
478+ pub const BG_TIMELINE: u32 = 0x0e0f1b;
479+ pub const BG_HOVER: u32 = 0x353a5e;
480+ pub const BG_HOVER_DIM: u32 = 0x1f2138;
481+ pub const BG_SELECTED: u32 = 0x3b2a78;
482+ pub const SCRIM: u32 = 0x0a0a12cc;
483+ pub const SCRIM_LIGHT: u32 = 0x0a0a1255;
484+
485+ // -- strokes ----------------------------------------------------------------
486+ pub const STROKE_DIVIDER: u32 = 0x2e3150;
487+ pub const STROKE_FOCUS: u32 = 0xfde68a;
488+ pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
489+
490+ // -- text -------------------------------------------------------------------
491+ pub const FG_PRIMARY: u32 = 0xeceafb;
492+ pub const FG_SECONDARY: u32 = 0xb6b4d8;
493+ pub const FG_DISABLED: u32 = 0x7b79a0;
494+
495+ // -- interaction ------------------------------------------------------------
496+ pub const ACCENT_PRIMARY: u32 = 0xa78bfa;
497+ pub const ACCENT_HOVER: u32 = 0xc4b5fd;
498+ pub const ACCENT_PLAYHEAD: u32 = 0xfacc15;
499+ pub const ACCENT_WASH: u32 = 0xa78bfaaa;
500+
501+ // -- clip kinds -------------------------------------------------------------
502+ pub const CLIP_VIDEO: u32 = 0x2f5a9e;
503+ pub const CLIP_AUDIO: u32 = 0x2c6b49;
504+ pub const CLIP_IMAGE: u32 = 0x1c6270;
505+ /// A shade off the accent on purpose: a text clip and "press this" must not
506+ /// be the same purple.
507+ pub const CLIP_TEXT: u32 = 0x6d3fa8;
508+
509+ pub const SOURCE_TINTS: [u32; 4] = [0x9b7fe8, 0xe8a97f, 0x7fc8e8, 0xe87fb4];
510+
511+ // -- feedback ---------------------------------------------------------------
512+ pub const STATUS_ERROR: u32 = 0xf87171;
513+ pub const STATUS_WARNING: u32 = 0xfbbf24;
514+ pub const STATUS_SUCCESS: u32 = 0x6ee7b7;
515+ pub const STATUS_PROGRESS: u32 = ACCENT_PRIMARY;
516+ pub const DROP_REFUSE: u32 = 0x7c2440;
517+
518+ // -- subtitles --------------------------------------------------------------
519+ pub const SUB_FG: u32 = 0xffffff;
520+ pub const SUB_SHADE: u32 = 0x000000cc;
521+
522+ // -- the equalizer graph and the histogram ----------------------------------
523+ pub const EQ_GRID: u32 = 0x2e3150;
524+ pub const EQ_SPECTRUM_INK: u32 = 0xb6b4d866;
525+ pub const EQ_FILL_INK: u32 = 0xa78bfa26;
526+ pub const EQ_BELL_INK: u32 = 0xa78bfa66;
527+ pub const HIST_INK: [u32; 3] = [0xE0_5A_5A, 0x5A_D0_7A, 0x5A_9A_E0];
528+}
529+
530+/// Family E: a ground with no cast at all -- the neutral one, for grading, where
531+/// nothing but the accent has a hue. That accent is rose, and the playhead is
532+/// the cyan on the other side of the wheel from it.
533+pub mod rose {
534+ // -- surfaces ---------------------------------------------------------------
535+ pub const BG_CANVAS: u32 = 0x0c0b0c;
536+ pub const BG_PANEL: u32 = 0x1a181a;
537+ pub const BG_RAISED: u32 = 0x2a272a;
538+ pub const BG_TIMELINE: u32 = 0x121012;
539+ pub const BG_HOVER: u32 = 0x3d383d;
540+ pub const BG_HOVER_DIM: u32 = 0x221f22;
541+ pub const BG_SELECTED: u32 = 0x6b1f38;
542+ pub const SCRIM: u32 = 0x0c0b0ccc;
543+ pub const SCRIM_LIGHT: u32 = 0x0c0b0c55;
544+
545+ // -- strokes ----------------------------------------------------------------
546+ pub const STROKE_DIVIDER: u32 = 0x332f33;
547+ pub const STROKE_FOCUS: u32 = 0xfcd34d;
548+ pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
549+
550+ // -- text -------------------------------------------------------------------
551+ pub const FG_PRIMARY: u32 = 0xf3edef;
552+ pub const FG_SECONDARY: u32 = 0xc0b4b8;
553+ pub const FG_DISABLED: u32 = 0x8a7e82;
554+
555+ // -- interaction ------------------------------------------------------------
556+ pub const ACCENT_PRIMARY: u32 = 0xfb7185;
557+ pub const ACCENT_HOVER: u32 = 0xfda4af;
558+ pub const ACCENT_PLAYHEAD: u32 = 0x67e8f9;
559+ pub const ACCENT_WASH: u32 = 0xfb7185aa;
560+
561+ // -- clip kinds -------------------------------------------------------------
562+ pub const CLIP_VIDEO: u32 = 0x2f5a9e;
563+ pub const CLIP_AUDIO: u32 = 0x2c6b49;
564+ pub const CLIP_IMAGE: u32 = 0x1c6270;
565+ pub const CLIP_TEXT: u32 = 0x6b46c1;
566+
567+ pub const SOURCE_TINTS: [u32; 4] = [0xe87f97, 0x7fc8e8, 0xe8c87f, 0x9b7fe8];
568+
569+ // -- feedback ---------------------------------------------------------------
570+ /// Brighter and more saturated than the accent it sits near on the wheel: on
571+ /// a rose window a failure has to be louder than "this is live", and the
572+ /// message's own first word says which it is either way ([`super::notice_tone`]).
573+ pub const STATUS_ERROR: u32 = 0xff4d4d;
574+ pub const STATUS_WARNING: u32 = 0xfacc15;
575+ pub const STATUS_SUCCESS: u32 = 0x4ade80;
576+ pub const STATUS_PROGRESS: u32 = ACCENT_PRIMARY;
577+ pub const DROP_REFUSE: u32 = 0x8f2740;
578+
579+ // -- subtitles --------------------------------------------------------------
580+ pub const SUB_FG: u32 = 0xffffff;
581+ pub const SUB_SHADE: u32 = 0x000000cc;
582+
583+ // -- the equalizer graph and the histogram ----------------------------------
584+ pub const EQ_GRID: u32 = 0x332f33;
585+ pub const EQ_SPECTRUM_INK: u32 = 0xc0b4b866;
586+ pub const EQ_FILL_INK: u32 = 0xfb718526;
587+ pub const EQ_BELL_INK: u32 = 0xfb718566;
588+ pub const HIST_INK: [u32; 3] = [0xE0_5A_5A, 0x5A_D0_7A, 0x5A_9A_E0];
589+}
590+
591+/// Family F: a graphite ground -- neutral, a touch warm -- under one gold
592+/// accent. The focus ring turns sky here: gold is the accent now, and the
593+/// keyboard's ring is the one thing that may never be mistaken for it.
594+pub mod amber {
595+ // -- surfaces ---------------------------------------------------------------
596+ pub const BG_CANVAS: u32 = 0x0d0d0c;
597+ pub const BG_PANEL: u32 = 0x1b1b19;
598+ pub const BG_RAISED: u32 = 0x2b2b27;
599+ pub const BG_TIMELINE: u32 = 0x131311;
600+ pub const BG_HOVER: u32 = 0x3e3e38;
601+ pub const BG_HOVER_DIM: u32 = 0x232320;
602+ /// Gold at surface brightness carries neither ink at 4.5:1, so the picked
603+ /// row is the accent taken down to a bronze.
604+ pub const BG_SELECTED: u32 = 0x5e3a0b;
605+ pub const SCRIM: u32 = 0x0d0d0ccc;
606+ pub const SCRIM_LIGHT: u32 = 0x0d0d0c55;
607+
608+ // -- strokes ----------------------------------------------------------------
609+ pub const STROKE_DIVIDER: u32 = 0x35352f;
610+ pub const STROKE_FOCUS: u32 = 0x7dd3fc;
611+ pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
612+
613+ // -- text -------------------------------------------------------------------
614+ pub const FG_PRIMARY: u32 = 0xf2f0e9;
615+ pub const FG_SECONDARY: u32 = 0xbdbaae;
616+ pub const FG_DISABLED: u32 = 0x87857c;
617+
618+ // -- interaction ------------------------------------------------------------
619+ pub const ACCENT_PRIMARY: u32 = 0xfbbf24;
620+ pub const ACCENT_HOVER: u32 = 0xfcd34d;
621+ pub const ACCENT_PLAYHEAD: u32 = 0x93c5fd;
622+ pub const ACCENT_WASH: u32 = 0xfbbf24aa;
623+
624+ // -- clip kinds -------------------------------------------------------------
625+ pub const CLIP_VIDEO: u32 = 0x2f5a9e;
626+ pub const CLIP_AUDIO: u32 = 0x2c6b49;
627+ pub const CLIP_IMAGE: u32 = 0x1c6270;
628+ pub const CLIP_TEXT: u32 = 0x6b46c1;
629+
630+ pub const SOURCE_TINTS: [u32; 4] = [0xe8b45f, 0x5fa8e8, 0x7fd69b, 0xd68fc1];
631+
632+ // -- feedback ---------------------------------------------------------------
633+ /// The warning steps to orange: amber *is* the accent here, and a warning
634+ /// wearing it would be indistinguishable from every live control.
635+ pub const STATUS_ERROR: u32 = 0xf05252;
636+ pub const STATUS_WARNING: u32 = 0xfb923c;
637+ pub const STATUS_SUCCESS: u32 = 0x4ade80;
638+ pub const STATUS_PROGRESS: u32 = ACCENT_PRIMARY;
639+ pub const DROP_REFUSE: u32 = 0x7a2f24;
640+
641+ // -- subtitles --------------------------------------------------------------
642+ pub const SUB_FG: u32 = 0xffffff;
643+ pub const SUB_SHADE: u32 = 0x000000cc;
644+
645+ // -- the equalizer graph and the histogram ----------------------------------
646+ pub const EQ_GRID: u32 = 0x35352f;
647+ pub const EQ_SPECTRUM_INK: u32 = 0xbdbaae66;
648+ pub const EQ_FILL_INK: u32 = 0xfbbf2426;
649+ pub const EQ_BELL_INK: u32 = 0xfbbf2466;
650+ pub const HIST_INK: [u32; 3] = [0xE0_5A_5A, 0x5A_D0_7A, 0x5A_9A_E0];
651+}
652+
358653 /// The box a button's glyph sits in, whatever the glyph happens to measure: the
359654 /// pause bars are 12 px wide and the play triangle 11, and a button that resized
360655 /// itself when it was pressed moved every button to its right.