From 644e6ff8c34a4a65727938d3d52696e52bca4f43 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 22 Nov 2026 00:34:03 -0500 Subject: [PATCH] Inverse surface role (surface.inverse, text.on_inverse) in every theme; toasts use it (L-300) --- crates/theme/src/semantic_tests.rs | 1 + crates/theme/src/tokens/color.rs | 17 ++++++++-- crates/theme/src/values.rs | 6 ++++ .../tokens/adwaita-dark-high-comfortable.txt | 2 ++ .../tokens/adwaita-dark-high-compact.txt | 2 ++ .../adwaita-dark-standard-comfortable.txt | 2 ++ .../tokens/adwaita-dark-standard-compact.txt | 2 ++ .../tokens/adwaita-light-high-comfortable.txt | 2 ++ .../tokens/adwaita-light-high-compact.txt | 2 ++ .../adwaita-light-standard-comfortable.txt | 2 ++ .../tokens/adwaita-light-standard-compact.txt | 2 ++ .../tokens/artcraft-dark-high-comfortable.txt | 2 ++ .../tokens/artcraft-dark-high-compact.txt | 2 ++ .../artcraft-dark-standard-comfortable.txt | 2 ++ .../tokens/artcraft-dark-standard-compact.txt | 2 ++ .../artcraft-light-high-comfortable.txt | 2 ++ .../tokens/artcraft-light-high-compact.txt | 2 ++ .../artcraft-light-standard-comfortable.txt | 2 ++ .../artcraft-light-standard-compact.txt | 2 ++ .../tokens/breeze-dark-high-comfortable.txt | 2 ++ .../dumps/tokens/breeze-dark-high-compact.txt | 2 ++ .../breeze-dark-standard-comfortable.txt | 2 ++ .../tokens/breeze-dark-standard-compact.txt | 2 ++ .../tokens/breeze-light-high-comfortable.txt | 2 ++ .../tokens/breeze-light-high-compact.txt | 2 ++ .../breeze-light-standard-comfortable.txt | 2 ++ .../tokens/breeze-light-standard-compact.txt | 2 ++ .../tokens/classic-light-high-comfortable.txt | 2 ++ .../tokens/classic-light-high-compact.txt | 2 ++ .../classic-light-standard-comfortable.txt | 2 ++ .../tokens/classic-light-standard-compact.txt | 2 ++ .../tokens/graphite-dark-high-comfortable.txt | 2 ++ .../tokens/graphite-dark-high-compact.txt | 2 ++ .../graphite-dark-standard-comfortable.txt | 2 ++ .../tokens/graphite-dark-standard-compact.txt | 2 ++ .../graphite-light-high-comfortable.txt | 2 ++ .../tokens/graphite-light-high-compact.txt | 2 ++ .../graphite-light-standard-comfortable.txt | 2 ++ .../graphite-light-standard-compact.txt | 2 ++ .../tokens/pro-dark-high-comfortable.txt | 2 ++ .../dumps/tokens/pro-dark-high-compact.txt | 2 ++ ...ro-dark-standard-comfortable-app-sizes.txt | 2 ++ .../tokens/pro-dark-standard-comfortable.txt | 2 ++ .../tokens/pro-dark-standard-compact.txt | 2 ++ .../pro-light-gray-light-high-comfortable.txt | 2 ++ .../pro-light-gray-light-high-compact.txt | 2 ++ ...-light-gray-light-standard-comfortable.txt | 2 ++ .../pro-light-gray-light-standard-compact.txt | 2 ++ .../tokens/pro-light-high-comfortable.txt | 2 ++ .../dumps/tokens/pro-light-high-compact.txt | 2 ++ .../tokens/pro-light-standard-comfortable.txt | 2 ++ .../tokens/pro-light-standard-compact.txt | 2 ++ .../tokens/soft-dark-high-comfortable.txt | 2 ++ .../dumps/tokens/soft-dark-high-compact.txt | 2 ++ .../tokens/soft-dark-standard-comfortable.txt | 2 ++ .../tokens/soft-dark-standard-compact.txt | 2 ++ .../tokens/soft-light-high-comfortable.txt | 2 ++ .../dumps/tokens/soft-light-high-compact.txt | 2 ++ .../soft-light-standard-comfortable.txt | 2 ++ .../tokens/soft-light-standard-compact.txt | 2 ++ .../solarized-dark-dark-high-comfortable.txt | 2 ++ .../solarized-dark-dark-high-compact.txt | 2 ++ ...larized-dark-dark-standard-comfortable.txt | 2 ++ .../solarized-dark-dark-standard-compact.txt | 2 ++ .../tokens/studio-dark-high-comfortable.txt | 2 ++ .../dumps/tokens/studio-dark-high-compact.txt | 2 ++ .../studio-dark-standard-comfortable.txt | 2 ++ .../tokens/studio-dark-standard-compact.txt | 2 ++ .../tokens/studio-light-high-comfortable.txt | 2 ++ .../tokens/studio-light-high-compact.txt | 2 ++ .../studio-light-standard-comfortable.txt | 2 ++ .../tokens/studio-light-standard-compact.txt | 2 ++ crates/ui-widgets/src/notices/notice.rs | 16 +++++++--- crates/ui-widgets/src/notices/toasts.rs | 10 ++++-- crates/ui-widgets/tests/it/notices.rs | 32 +++++++++++++++++++ docs/suite-themes.md | 2 +- 76 files changed, 211 insertions(+), 11 deletions(-) diff --git a/crates/theme/src/semantic_tests.rs b/crates/theme/src/semantic_tests.rs index 5d6c10204..b5b373e35 100644 --- a/crates/theme/src/semantic_tests.rs +++ b/crates/theme/src/semantic_tests.rs @@ -125,6 +125,7 @@ fn spec_pairs() -> Vec<(T, T, f64, f64)> { p.extend(TEXT_BGS.map(|bg| (fg, bg, 4.5, 7.0))); } p.extend([T::StateSelected, T::StateSelectedHover].map(|bg| (T::TextOnSelected, bg, 4.5, 7.0))); + p.push((T::TextOnInverse, T::SurfaceInverse, 4.5, 7.0)); p.extend(CONTROL_BGS.map(|bg| (T::AccentText, bg, 4.5, 7.0))); p.push((T::AccentOnSoft, T::AccentSoft, 4.5, 7.0)); p.extend([T::AccentSolid, T::AccentHover, T::AccentPressed].map(|bg| (T::TextOnAccent, bg, 4.5, 7.0))); diff --git a/crates/theme/src/tokens/color.rs b/crates/theme/src/tokens/color.rs index 905fe4b4e..374922573 100644 --- a/crates/theme/src/tokens/color.rs +++ b/crates/theme/src/tokens/color.rs @@ -68,6 +68,9 @@ pub struct SurfaceColors { pub knob: Rgba, /// Translucent cover behind modal surfaces. pub scrim: Rgba, + /// The surface that stands out from the others by being the opposite of them: light on a dark theme, dark on a + /// light one. Toasts sit on it, with `text.on_inverse` on top. + pub inverse: Rgba, /// The colour of every cast shadow (popups, menus, dialogs, floating windows, toasts, /// tooltips): black at the theme's alpha, as PhotoCraft's `Tokens::shadow`. Each use keeps its /// own offset and blur (`elevation.*`). @@ -96,6 +99,8 @@ pub struct TextColors { pub on_status: Rgba, /// Text on `state.selected` and `state.selected_hover`. pub on_selected: Rgba, + /// Text on `surface.inverse`. + pub on_inverse: Rgba, } /// Lines and outlines. @@ -315,9 +320,10 @@ impl ColorTokens { sunken: c, knob: c, scrim: c, + inverse: c, shadow: c, }, - text: TextColors { normal: c, muted: c, faint: c, disabled: c, on_accent: c, on_strong: c, on_status: c, on_selected: c }, + text: TextColors { normal: c, muted: c, faint: c, disabled: c, on_accent: c, on_strong: c, on_status: c, on_selected: c, on_inverse: c }, line: LineColors { divider: c, border: c, control_edge: c, knob_edge: c, frame: c, mark: c, focus: c }, accent: AccentColors { solid: c, @@ -433,6 +439,8 @@ color_tokens! { SurfaceKnob = "surface.knob" => surface.knob; /// `surface.scrim` SurfaceScrim = "surface.scrim" => surface.scrim; + /// `surface.inverse` + SurfaceInverse = "surface.inverse" => surface.inverse; /// `surface.shadow` SurfaceShadow = "surface.shadow" => surface.shadow; /// `text.normal` @@ -451,6 +459,8 @@ color_tokens! { TextOnStatus = "text.on_status" => text.on_status; /// `text.on_selected` TextOnSelected = "text.on_selected" => text.on_selected; + /// `text.on_inverse` + TextOnInverse = "text.on_inverse" => text.on_inverse; /// `line.divider` LineDivider = "line.divider" => line.divider; /// `line.border` @@ -632,11 +642,12 @@ impl ColorToken { /// (`surface.*` except `scrim` and `shadow`); those must be opaque. pub const fn is_opaque_surface(self) -> bool { use ColorToken::{ - SurfaceBackground, SurfaceCanvas, SurfaceCanvasPattern, SurfaceChrome, SurfaceKnob, SurfacePanel, SurfaceRaised, SurfaceSunken, + SurfaceBackground, SurfaceCanvas, SurfaceCanvasPattern, SurfaceChrome, SurfaceInverse, SurfaceKnob, SurfacePanel, SurfaceRaised, + SurfaceSunken, }; matches!( self, - SurfaceBackground | SurfaceCanvas | SurfaceCanvasPattern | SurfaceChrome | SurfacePanel | SurfaceRaised | SurfaceSunken | SurfaceKnob + SurfaceBackground | SurfaceCanvas | SurfaceCanvasPattern | SurfaceChrome | SurfacePanel | SurfaceRaised | SurfaceSunken | SurfaceKnob | SurfaceInverse ) } } diff --git a/crates/theme/src/values.rs b/crates/theme/src/values.rs index 67f9a8bf2..1e7bb7855 100644 --- a/crates/theme/src/values.rs +++ b/crates/theme/src/values.rs @@ -183,6 +183,9 @@ pub(super) fn source(token: ColorToken, mode: Mode) -> ColorSource { // Near white in both modes (dark: about 236/255), as macOS, GNOME and PhotoCraft knobs. A // knob face is not a background grey, so it stays on the curve. T::SurfaceKnob => Neutral(pick(12, 1)), + // The opposite of the panel: a light card on a dark theme, a dark one on a light theme. Step 12 of the ramp + // is the text colour's step, so the surface has the contrast text has in either mode. + T::SurfaceInverse => Neutral(12), T::SurfaceScrim => Fixed(Rgba::BLACK.with_alpha(alpha(pickf(0.5, 0.35)))), T::SurfaceShadow => Fixed(Rgba::BLACK.with_alpha(pick(SHADOW_ALPHA.1, SHADOW_ALPHA.0) as u8)), T::TextNormal => Neutral(12), @@ -194,6 +197,8 @@ pub(super) fn source(token: ColorToken, mode: Mode) -> ColorSource { T::TextOnStatus => OnSolid(STATUS_SOLIDS), // `text.normal`'s step, so neutral selections look like the rest of the text. T::TextOnSelected => Neutral(12), + // Step 1 is the far end of the ramp from the inverse surface's step 12 in either mode. + T::TextOnInverse => Neutral(1), T::LineDivider => Anchored(6), T::LineBorder => Anchored(7), T::LineControlEdge => Anchored(8), @@ -379,6 +384,7 @@ pub(super) const RULES: &[PairRule] = &[ // A canvas scroll bar's thumb is a boundary on its track: Standard keeps the theme's own greys. rule(&[T::TextFaint, T::TextMuted], &[Token(T::SurfaceChrome)], CONTROL_EDGE_MIN.0, CONTROL_EDGE_MIN.1), rule(&[T::TextOnSelected], SELECTED_BGS, TEXT_MIN.0, TEXT_MIN.1), + rule(&[T::TextOnInverse], &[Token(T::SurfaceInverse)], TEXT_MIN.0, TEXT_MIN.1), rule(&[T::AccentText], CONTROL_BGS, TEXT_MIN.0, TEXT_MIN.1), // After `accent.text`, which it starts from. rule(&[T::AccentOnSoft], &[Token(T::AccentSoft)], TEXT_MIN.0, TEXT_MIN.1), diff --git a/crates/theme/tests/dumps/tokens/adwaita-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/adwaita-dark-high-comfortable.txt index e1e34bf96..65169a134 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #404044ff surface.sunken = #404044ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #0000008c text.normal = #ffffffff text.muted = #fafafcff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #18181bff line.border = #404044ff line.control_edge = #4c4c50ff diff --git a/crates/theme/tests/dumps/tokens/adwaita-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/adwaita-dark-high-compact.txt index 234c614fd..5470f524e 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #404044ff surface.sunken = #404044ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #0000008c text.normal = #ffffffff text.muted = #fafafcff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #18181bff line.border = #404044ff line.control_edge = #4c4c50ff diff --git a/crates/theme/tests/dumps/tokens/adwaita-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/adwaita-dark-standard-comfortable.txt index 3ef6d8504..a88c97e55 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #39393eff surface.sunken = #404044ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #0000008c text.normal = #ffffffff text.muted = #c0c0c2ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #18181bff line.border = #404044ff line.control_edge = #4c4c50ff diff --git a/crates/theme/tests/dumps/tokens/adwaita-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/adwaita-dark-standard-compact.txt index a9aba5082..e369fde16 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #39393eff surface.sunken = #404044ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #0000008c text.normal = #ffffffff text.muted = #c0c0c2ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #18181bff line.border = #404044ff line.control_edge = #4c4c50ff diff --git a/crates/theme/tests/dumps/tokens/adwaita-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/adwaita-light-high-comfortable.txt index 2af6bbff1..b34733719 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ebebedff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #0000002d text.normal = #323236ff text.muted = #403f43ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #dedee1ff line.border = #dadaddff line.control_edge = #dadaddff diff --git a/crates/theme/tests/dumps/tokens/adwaita-light-high-compact.txt b/crates/theme/tests/dumps/tokens/adwaita-light-high-compact.txt index d1648993d..e5f3af8a8 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ebebedff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #0000002d text.normal = #323236ff text.muted = #403f43ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #dedee1ff line.border = #dadaddff line.control_edge = #dadaddff diff --git a/crates/theme/tests/dumps/tokens/adwaita-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/adwaita-light-standard-comfortable.txt index b320cc27d..c6837ee86 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ebebedff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #0000002d text.normal = #323236ff text.muted = #646468ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #dedee1ff line.border = #dadaddff line.control_edge = #dadaddff diff --git a/crates/theme/tests/dumps/tokens/adwaita-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/adwaita-light-standard-compact.txt index 1e29c9a77..5ff0fc9cb 100644 --- a/crates/theme/tests/dumps/tokens/adwaita-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/adwaita-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ebebedff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #0000002d text.normal = #323236ff text.muted = #646468ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #dedee1ff line.border = #dadaddff line.control_edge = #dadaddff diff --git a/crates/theme/tests/dumps/tokens/artcraft-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/artcraft-dark-high-comfortable.txt index 70b095cf4..2122b411c 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #595959ff surface.sunken = #454545ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #ffffffff text.muted = #ffffffff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #3e3e3eff line.border = #424242ff line.control_edge = #686868ff diff --git a/crates/theme/tests/dumps/tokens/artcraft-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/artcraft-dark-high-compact.txt index ae6cd9e19..d78e1d18f 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #595959ff surface.sunken = #454545ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #ffffffff text.muted = #ffffffff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #3e3e3eff line.border = #424242ff line.control_edge = #686868ff diff --git a/crates/theme/tests/dumps/tokens/artcraft-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/artcraft-dark-standard-comfortable.txt index e1f8c22a7..3637c54bf 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #5c5c5cff surface.sunken = #454545ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #eeeeeeff text.muted = #d4d4d4ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #3e3e3eff line.border = #424242ff line.control_edge = #686868ff diff --git a/crates/theme/tests/dumps/tokens/artcraft-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/artcraft-dark-standard-compact.txt index 4f76678e5..f4cb9e559 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #5c5c5cff surface.sunken = #454545ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #eeeeeeff text.muted = #d4d4d4ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #3e3e3eff line.border = #424242ff line.control_edge = #686868ff diff --git a/crates/theme/tests/dumps/tokens/artcraft-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/artcraft-light-high-comfortable.txt index 00a1091c9..9a16b8a6e 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #3c3c3cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/artcraft-light-high-compact.txt b/crates/theme/tests/dumps/tokens/artcraft-light-high-compact.txt index bfb368afb..f9d05c5c7 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #3c3c3cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/artcraft-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/artcraft-light-standard-comfortable.txt index 55f702a1f..404399574 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/artcraft-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/artcraft-light-standard-compact.txt index 6ebe57241..bcda41dd9 100644 --- a/crates/theme/tests/dumps/tokens/artcraft-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/artcraft-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/breeze-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/breeze-dark-high-comfortable.txt index 709e21b2a..1998277db 100644 --- a/crates/theme/tests/dumps/tokens/breeze-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/breeze-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #272b30ff surface.sunken = #262a30ff surface.knob = #e9ebeeff surface.scrim = #00000080 +surface.inverse = #e9ebeeff surface.shadow = #00000096 text.normal = #fafbfdff text.muted = #ccd3daff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e9ebeeff +text.on_inverse = #0d0d0dff line.divider = #2e3236ff line.border = #34383dff line.control_edge = #44494fff diff --git a/crates/theme/tests/dumps/tokens/breeze-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/breeze-dark-high-compact.txt index 352f425c3..65283adfe 100644 --- a/crates/theme/tests/dumps/tokens/breeze-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/breeze-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #272b30ff surface.sunken = #262a30ff surface.knob = #e9ebeeff surface.scrim = #00000080 +surface.inverse = #e9ebeeff surface.shadow = #00000096 text.normal = #fafbfdff text.muted = #ccd3daff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e9ebeeff +text.on_inverse = #0d0d0dff line.divider = #2e3236ff line.border = #34383dff line.control_edge = #44494fff diff --git a/crates/theme/tests/dumps/tokens/breeze-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/breeze-dark-standard-comfortable.txt index 777b6c368..335a5b4e4 100644 --- a/crates/theme/tests/dumps/tokens/breeze-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/breeze-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #272b30ff surface.sunken = #262a30ff surface.knob = #e9ebeeff surface.scrim = #00000080 +surface.inverse = #e9ebeeff surface.shadow = #00000096 text.normal = #fafbfdff text.muted = #c8ced5ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e9ebeeff +text.on_inverse = #0d0d0dff line.divider = #2e3236ff line.border = #34383dff line.control_edge = #44494fff diff --git a/crates/theme/tests/dumps/tokens/breeze-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/breeze-dark-standard-compact.txt index 39337fa26..00e5e7e07 100644 --- a/crates/theme/tests/dumps/tokens/breeze-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/breeze-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #272b30ff surface.sunken = #262a30ff surface.knob = #e9ebeeff surface.scrim = #00000080 +surface.inverse = #e9ebeeff surface.shadow = #00000096 text.normal = #fafbfdff text.muted = #c8ced5ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e9ebeeff +text.on_inverse = #0d0d0dff line.divider = #2e3236ff line.border = #34383dff line.control_edge = #44494fff diff --git a/crates/theme/tests/dumps/tokens/breeze-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/breeze-light-high-comfortable.txt index d815f8260..171f24659 100644 --- a/crates/theme/tests/dumps/tokens/breeze-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/breeze-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f2f4f7ff surface.sunken = #f9fafcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #252729ff surface.shadow = #0000002d text.normal = #21252aff text.muted = #363f48ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #252729ff +text.on_inverse = #fcfcfdff line.divider = #d6dadeff line.border = #cbd0d5ff line.control_edge = #b8bfc6ff diff --git a/crates/theme/tests/dumps/tokens/breeze-light-high-compact.txt b/crates/theme/tests/dumps/tokens/breeze-light-high-compact.txt index 3a3de563a..3002d8b60 100644 --- a/crates/theme/tests/dumps/tokens/breeze-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/breeze-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f2f4f7ff surface.sunken = #f9fafcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #252729ff surface.shadow = #0000002d text.normal = #21252aff text.muted = #363f48ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #252729ff +text.on_inverse = #fcfcfdff line.divider = #d6dadeff line.border = #cbd0d5ff line.control_edge = #b8bfc6ff diff --git a/crates/theme/tests/dumps/tokens/breeze-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/breeze-light-standard-comfortable.txt index 1c1046d51..626bace84 100644 --- a/crates/theme/tests/dumps/tokens/breeze-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/breeze-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f2f4f7ff surface.sunken = #f9fafcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #252729ff surface.shadow = #0000002d text.normal = #21252aff text.muted = #363f48ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #252729ff +text.on_inverse = #fcfcfdff line.divider = #d6dadeff line.border = #cbd0d5ff line.control_edge = #b8bfc6ff diff --git a/crates/theme/tests/dumps/tokens/breeze-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/breeze-light-standard-compact.txt index d28858afa..e7e7df4dd 100644 --- a/crates/theme/tests/dumps/tokens/breeze-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/breeze-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f2f4f7ff surface.sunken = #f9fafcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #252729ff surface.shadow = #0000002d text.normal = #21252aff text.muted = #363f48ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #252729ff +text.on_inverse = #fcfcfdff line.divider = #d6dadeff line.border = #cbd0d5ff line.control_edge = #b8bfc6ff diff --git a/crates/theme/tests/dumps/tokens/classic-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/classic-light-high-comfortable.txt index 0a8745f5e..9babc49ec 100644 --- a/crates/theme/tests/dumps/tokens/classic-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/classic-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #d4d0c8ff surface.sunken = #ffffffff surface.knob = #d4d0c8ff surface.scrim = #00000059 +surface.inverse = #282624ff surface.shadow = #00000000 text.normal = #000000ff text.muted = #2e2e2eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #000000ff text.on_status = #ffffffff text.on_selected = #ffffffff +text.on_inverse = #fdfcfcff line.divider = #808080ff line.border = #808080ff line.control_edge = #808080ff diff --git a/crates/theme/tests/dumps/tokens/classic-light-high-compact.txt b/crates/theme/tests/dumps/tokens/classic-light-high-compact.txt index 6ded2511a..27e9f49ed 100644 --- a/crates/theme/tests/dumps/tokens/classic-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/classic-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #d4d0c8ff surface.sunken = #ffffffff surface.knob = #d4d0c8ff surface.scrim = #00000059 +surface.inverse = #282624ff surface.shadow = #00000000 text.normal = #000000ff text.muted = #2e2e2eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #000000ff text.on_status = #ffffffff text.on_selected = #ffffffff +text.on_inverse = #fdfcfcff line.divider = #808080ff line.border = #808080ff line.control_edge = #808080ff diff --git a/crates/theme/tests/dumps/tokens/classic-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/classic-light-standard-comfortable.txt index 64a72cd99..8c6abd1a3 100644 --- a/crates/theme/tests/dumps/tokens/classic-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/classic-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #d4d0c8ff surface.sunken = #ffffffff surface.knob = #d4d0c8ff surface.scrim = #00000059 +surface.inverse = #282624ff surface.shadow = #00000000 text.normal = #000000ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #000000ff text.on_status = #ffffffff text.on_selected = #ffffffff +text.on_inverse = #fdfcfcff line.divider = #808080ff line.border = #808080ff line.control_edge = #808080ff diff --git a/crates/theme/tests/dumps/tokens/classic-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/classic-light-standard-compact.txt index 475e84eb3..2484b7367 100644 --- a/crates/theme/tests/dumps/tokens/classic-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/classic-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #d4d0c8ff surface.sunken = #ffffffff surface.knob = #d4d0c8ff surface.scrim = #00000059 +surface.inverse = #282624ff surface.shadow = #00000000 text.normal = #000000ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #000000ff text.on_status = #ffffffff text.on_selected = #ffffffff +text.on_inverse = #fdfcfcff line.divider = #808080ff line.border = #808080ff line.control_edge = #808080ff diff --git a/crates/theme/tests/dumps/tokens/graphite-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/graphite-dark-high-comfortable.txt index ed62a4f67..8f9bcfb3d 100644 --- a/crates/theme/tests/dumps/tokens/graphite-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/graphite-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #2e2e33ff surface.sunken = #131317ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #00000096 text.normal = #ececefff text.muted = #cacbd3ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #47474cff line.border = #3c3c43ff line.control_edge = #77777cff diff --git a/crates/theme/tests/dumps/tokens/graphite-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/graphite-dark-high-compact.txt index ed6911bd1..83ec0e8a6 100644 --- a/crates/theme/tests/dumps/tokens/graphite-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/graphite-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #2e2e33ff surface.sunken = #131317ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #00000096 text.normal = #ececefff text.muted = #cacbd3ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #47474cff line.border = #3c3c43ff line.control_edge = #77777cff diff --git a/crates/theme/tests/dumps/tokens/graphite-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/graphite-dark-standard-comfortable.txt index cb1c644a7..7f6075ba7 100644 --- a/crates/theme/tests/dumps/tokens/graphite-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/graphite-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #2e2e33ff surface.sunken = #131317ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #00000096 text.normal = #ececefff text.muted = #aeaeb6ff @@ -17,6 +18,7 @@ text.on_accent = #19191cff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #47474cff line.border = #3c3c43ff line.control_edge = #77777cff diff --git a/crates/theme/tests/dumps/tokens/graphite-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/graphite-dark-standard-compact.txt index fd85432e1..4f4aea9bf 100644 --- a/crates/theme/tests/dumps/tokens/graphite-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/graphite-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #2e2e33ff surface.sunken = #131317ff surface.knob = #ebebedff surface.scrim = #00000080 +surface.inverse = #ebebedff surface.shadow = #00000096 text.normal = #ececefff text.muted = #aeaeb6ff @@ -17,6 +18,7 @@ text.on_accent = #19191cff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebedff +text.on_inverse = #0d0d0dff line.divider = #47474cff line.border = #3c3c43ff line.control_edge = #77777cff diff --git a/crates/theme/tests/dumps/tokens/graphite-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/graphite-light-high-comfortable.txt index 086e42f22..4ef0444d9 100644 --- a/crates/theme/tests/dumps/tokens/graphite-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/graphite-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ffffffff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #00000032 text.normal = #222226ff text.muted = #4f4f56ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #d9d9d9ff line.border = #dadadeff line.control_edge = #b2b2b2ff diff --git a/crates/theme/tests/dumps/tokens/graphite-light-high-compact.txt b/crates/theme/tests/dumps/tokens/graphite-light-high-compact.txt index 20062381c..686a2a296 100644 --- a/crates/theme/tests/dumps/tokens/graphite-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/graphite-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ffffffff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #00000032 text.normal = #222226ff text.muted = #4f4f56ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #d9d9d9ff line.border = #dadadeff line.control_edge = #b2b2b2ff diff --git a/crates/theme/tests/dumps/tokens/graphite-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/graphite-light-standard-comfortable.txt index ac916ce09..04788aae2 100644 --- a/crates/theme/tests/dumps/tokens/graphite-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/graphite-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ffffffff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #00000032 text.normal = #222226ff text.muted = #5e5e66ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #d9d9d9ff line.border = #dadadeff line.control_edge = #b2b2b2ff diff --git a/crates/theme/tests/dumps/tokens/graphite-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/graphite-light-standard-compact.txt index c7e474ea1..5f71199fb 100644 --- a/crates/theme/tests/dumps/tokens/graphite-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/graphite-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #ffffffff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #262628ff surface.shadow = #00000032 text.normal = #222226ff text.muted = #5e5e66ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262628ff +text.on_inverse = #fcfcfdff line.divider = #d9d9d9ff line.border = #dadadeff line.control_edge = #b2b2b2ff diff --git a/crates/theme/tests/dumps/tokens/pro-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-dark-high-comfortable.txt index a653473ad..b79765fb3 100644 --- a/crates/theme/tests/dumps/tokens/pro-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #3c3c3cff surface.sunken = #242424ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #ecececff text.muted = #ecececff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #1e1e1eff line.border = #1e1e1eff line.control_edge = #4a4a4aff diff --git a/crates/theme/tests/dumps/tokens/pro-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/pro-dark-high-compact.txt index 6c8c0dfee..44f67a20f 100644 --- a/crates/theme/tests/dumps/tokens/pro-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #3c3c3cff surface.sunken = #242424ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #ecececff text.muted = #ecececff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ffffffff +text.on_inverse = #0d0d0dff line.divider = #1e1e1eff line.border = #1e1e1eff line.control_edge = #4a4a4aff diff --git a/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable-app-sizes.txt b/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable-app-sizes.txt index a2fc1f7d2..c2e948410 100644 --- a/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable-app-sizes.txt +++ b/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable-app-sizes.txt @@ -8,6 +8,7 @@ surface.raised = #3c3c3cff surface.sunken = #242424ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #dededeff text.muted = #b2b2b2ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebebff +text.on_inverse = #0d0d0dff line.divider = #1e1e1eff line.border = #1e1e1eff line.control_edge = #4a4a4aff diff --git a/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable.txt index c1cc33b3e..dd3eb6e90 100644 --- a/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #3c3c3cff surface.sunken = #242424ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #dededeff text.muted = #b2b2b2ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebebff +text.on_inverse = #0d0d0dff line.divider = #1e1e1eff line.border = #1e1e1eff line.control_edge = #4a4a4aff diff --git a/crates/theme/tests/dumps/tokens/pro-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/pro-dark-standard-compact.txt index 1964a740c..0279cbce2 100644 --- a/crates/theme/tests/dumps/tokens/pro-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #3c3c3cff surface.sunken = #242424ff surface.knob = #ebebebff surface.scrim = #00000080 +surface.inverse = #ebebebff surface.shadow = #00000096 text.normal = #dededeff text.muted = #b2b2b2ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #ebebebff +text.on_inverse = #0d0d0dff line.divider = #1e1e1eff line.border = #1e1e1eff line.control_edge = #4a4a4aff diff --git a/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-comfortable.txt index f161ee554..c02578c0a 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #bdbdbdff surface.sunken = #d6d6d6ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000046 text.normal = #141414ff text.muted = #1e1e1eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #9e9e9eff line.border = #a0a0a0ff line.control_edge = #8c8c8cff diff --git a/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-compact.txt b/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-compact.txt index 32bf9b423..48edfa91a 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-gray-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #bdbdbdff surface.sunken = #d6d6d6ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000046 text.normal = #141414ff text.muted = #1e1e1eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #9e9e9eff line.border = #a0a0a0ff line.control_edge = #8c8c8cff diff --git a/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-comfortable.txt index 284bb93e2..20d92f02f 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #bdbdbdff surface.sunken = #d6d6d6ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000046 text.normal = #141414ff text.muted = #343434ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #9e9e9eff line.border = #a0a0a0ff line.control_edge = #8c8c8cff diff --git a/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-compact.txt index 4dfa8b047..1324e21ba 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-gray-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #bdbdbdff surface.sunken = #d6d6d6ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000046 text.normal = #141414ff text.muted = #343434ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #9e9e9eff line.border = #a0a0a0ff line.control_edge = #8c8c8cff diff --git a/crates/theme/tests/dumps/tokens/pro-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-light-high-comfortable.txt index 257a367dd..2365319ed 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #3c3c3cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/pro-light-high-compact.txt b/crates/theme/tests/dumps/tokens/pro-light-high-compact.txt index 68cdaad75..bcb9a88e0 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #3c3c3cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/pro-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/pro-light-standard-comfortable.txt index 1b2bc5507..df06f1197 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/pro-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/pro-light-standard-compact.txt index b4bbf55d3..8e0eaa8a9 100644 --- a/crates/theme/tests/dumps/tokens/pro-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/pro-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f6f6ff surface.sunken = #ffffffff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262626ff surface.shadow = #00000032 text.normal = #141414ff text.muted = #404040ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #262626ff +text.on_inverse = #fcfcfcff line.divider = #d6d6d6ff line.border = #d6d6d6ff line.control_edge = #bababaff diff --git a/crates/theme/tests/dumps/tokens/soft-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/soft-dark-high-comfortable.txt index ad8f3275d..7a9632449 100644 --- a/crates/theme/tests/dumps/tokens/soft-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/soft-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #40404bff surface.sunken = #40404bff surface.knob = #eaeaf0ff surface.scrim = #00000080 +surface.inverse = #eaeaf0ff surface.shadow = #0000006e text.normal = #eeeef6ff text.muted = #e5e6f2ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #eaeaf0ff +text.on_inverse = #0d0d0eff line.divider = #24242cff line.border = #464652ff line.control_edge = #545462ff diff --git a/crates/theme/tests/dumps/tokens/soft-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/soft-dark-high-compact.txt index 17d472b79..b566fd0d3 100644 --- a/crates/theme/tests/dumps/tokens/soft-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/soft-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #40404bff surface.sunken = #40404bff surface.knob = #eaeaf0ff surface.scrim = #00000080 +surface.inverse = #eaeaf0ff surface.shadow = #0000006e text.normal = #eeeef6ff text.muted = #e5e6f2ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #eaeaf0ff +text.on_inverse = #0d0d0eff line.divider = #24242cff line.border = #464652ff line.control_edge = #545462ff diff --git a/crates/theme/tests/dumps/tokens/soft-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/soft-dark-standard-comfortable.txt index 7b167d2e2..83c3d99d5 100644 --- a/crates/theme/tests/dumps/tokens/soft-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/soft-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #40404bff surface.sunken = #40404bff surface.knob = #eaeaf0ff surface.scrim = #00000080 +surface.inverse = #eaeaf0ff surface.shadow = #0000006e text.normal = #eeeef6ff text.muted = #d4d4e0ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #eaeaf0ff +text.on_inverse = #0d0d0eff line.divider = #24242cff line.border = #464652ff line.control_edge = #545462ff diff --git a/crates/theme/tests/dumps/tokens/soft-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/soft-dark-standard-compact.txt index 857b91ed1..829cfe888 100644 --- a/crates/theme/tests/dumps/tokens/soft-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/soft-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #40404bff surface.sunken = #40404bff surface.knob = #eaeaf0ff surface.scrim = #00000080 +surface.inverse = #eaeaf0ff surface.shadow = #0000006e text.normal = #eeeef6ff text.muted = #d4d4e0ff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #eaeaf0ff +text.on_inverse = #0d0d0eff line.divider = #24242cff line.border = #464652ff line.control_edge = #545462ff diff --git a/crates/theme/tests/dumps/tokens/soft-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/soft-light-high-comfortable.txt index a2e781704..fc549a534 100644 --- a/crates/theme/tests/dumps/tokens/soft-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/soft-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f4f9ff surface.sunken = #faf9fcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #272628ff surface.shadow = #00000028 text.normal = #2c2a38ff text.muted = #3e3c4cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #ffffffff text.on_selected = #272628ff +text.on_inverse = #fcfcfdff line.divider = #d2cfdaff line.border = #d0cdd7ff line.control_edge = #bebbc9ff diff --git a/crates/theme/tests/dumps/tokens/soft-light-high-compact.txt b/crates/theme/tests/dumps/tokens/soft-light-high-compact.txt index a96f66c16..fbbf63611 100644 --- a/crates/theme/tests/dumps/tokens/soft-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/soft-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f4f9ff surface.sunken = #faf9fcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #272628ff surface.shadow = #00000028 text.normal = #2c2a38ff text.muted = #3e3c4cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #ffffffff text.on_selected = #272628ff +text.on_inverse = #fcfcfdff line.divider = #d2cfdaff line.border = #d0cdd7ff line.control_edge = #bebbc9ff diff --git a/crates/theme/tests/dumps/tokens/soft-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/soft-light-standard-comfortable.txt index e113483a0..ae5b389c1 100644 --- a/crates/theme/tests/dumps/tokens/soft-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/soft-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #f6f4f9ff surface.sunken = #faf9fcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #272628ff surface.shadow = #00000028 text.normal = #2c2a38ff text.muted = #3e3c4cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #ffffffff text.on_selected = #272628ff +text.on_inverse = #fcfcfdff line.divider = #d2cfdaff line.border = #d0cdd7ff line.control_edge = #bebbc9ff diff --git a/crates/theme/tests/dumps/tokens/soft-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/soft-light-standard-compact.txt index 838825074..03a16d519 100644 --- a/crates/theme/tests/dumps/tokens/soft-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/soft-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #f6f4f9ff surface.sunken = #faf9fcff surface.knob = #fcfcfdff surface.scrim = #00000059 +surface.inverse = #272628ff surface.shadow = #00000028 text.normal = #2c2a38ff text.muted = #3e3c4cff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #ffffffff text.on_status = #ffffffff text.on_selected = #272628ff +text.on_inverse = #fcfcfdff line.divider = #d2cfdaff line.border = #d0cdd7ff line.control_edge = #bebbc9ff diff --git a/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-comfortable.txt index 1a92c8898..bea457c71 100644 --- a/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #15414dff surface.sunken = #00252fff surface.knob = #e2edf1ff surface.scrim = #00000080 +surface.inverse = #e2edf1ff surface.shadow = #00000096 text.normal = #e3f5f7ff text.muted = #ddf6ffff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e2edf1ff +text.on_inverse = #0c0d0eff line.divider = #00252fff line.border = #00252fff line.control_edge = #15505fff diff --git a/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-compact.txt index 36e54c9db..293dcdfc5 100644 --- a/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/solarized-dark-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #15414dff surface.sunken = #00252fff surface.knob = #e2edf1ff surface.scrim = #00000080 +surface.inverse = #e2edf1ff surface.shadow = #00000096 text.normal = #e3f5f7ff text.muted = #ddf6ffff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e2edf1ff +text.on_inverse = #0c0d0eff line.divider = #00252fff line.border = #00252fff line.control_edge = #15505fff diff --git a/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-comfortable.txt index a6d0d66c2..558c9e035 100644 --- a/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #15414dff surface.sunken = #00252fff surface.knob = #e2edf1ff surface.scrim = #00000080 +surface.inverse = #e2edf1ff surface.shadow = #00000096 text.normal = #839496ff text.muted = #657b83ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e2edf1ff +text.on_inverse = #0c0d0eff line.divider = #00252fff line.border = #00252fff line.control_edge = #15505fff diff --git a/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-compact.txt index 50b6a2dd9..484d97273 100644 --- a/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/solarized-dark-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #15414dff surface.sunken = #00252fff surface.knob = #e2edf1ff surface.scrim = #00000080 +surface.inverse = #e2edf1ff surface.shadow = #00000096 text.normal = #839496ff text.muted = #657b83ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #ffffffff text.on_status = #000000ff text.on_selected = #e2edf1ff +text.on_inverse = #0c0d0eff line.divider = #00252fff line.border = #00252fff line.control_edge = #15505fff diff --git a/crates/theme/tests/dumps/tokens/studio-dark-high-comfortable.txt b/crates/theme/tests/dumps/tokens/studio-dark-high-comfortable.txt index 70ec56153..2dddaf2f3 100644 --- a/crates/theme/tests/dumps/tokens/studio-dark-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/studio-dark-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #232325ff surface.sunken = #232326ff surface.knob = #ebebecff surface.scrim = #00000080 +surface.inverse = #ebebecff surface.shadow = #0000008c text.normal = #ececf0ff text.muted = #c8c8d0ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #0c0c0eff text.on_status = #000000ff text.on_selected = #ebebecff +text.on_inverse = #0d0d0dff line.divider = #26262aff line.border = #28282cff line.control_edge = #343439ff diff --git a/crates/theme/tests/dumps/tokens/studio-dark-high-compact.txt b/crates/theme/tests/dumps/tokens/studio-dark-high-compact.txt index ac2fc9e97..f2009a062 100644 --- a/crates/theme/tests/dumps/tokens/studio-dark-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/studio-dark-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #232325ff surface.sunken = #232326ff surface.knob = #ebebecff surface.scrim = #00000080 +surface.inverse = #ebebecff surface.shadow = #0000008c text.normal = #ececf0ff text.muted = #c8c8d0ff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #0c0c0eff text.on_status = #000000ff text.on_selected = #ebebecff +text.on_inverse = #0d0d0dff line.divider = #26262aff line.border = #28282cff line.control_edge = #343439ff diff --git a/crates/theme/tests/dumps/tokens/studio-dark-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/studio-dark-standard-comfortable.txt index 800b1a04d..d7175af11 100644 --- a/crates/theme/tests/dumps/tokens/studio-dark-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/studio-dark-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #232325ff surface.sunken = #232326ff surface.knob = #ebebecff surface.scrim = #00000080 +surface.inverse = #ebebecff surface.shadow = #0000008c text.normal = #ececf0ff text.muted = #96969eff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #0c0c0eff text.on_status = #000000ff text.on_selected = #ebebecff +text.on_inverse = #0d0d0dff line.divider = #26262aff line.border = #28282cff line.control_edge = #343439ff diff --git a/crates/theme/tests/dumps/tokens/studio-dark-standard-compact.txt b/crates/theme/tests/dumps/tokens/studio-dark-standard-compact.txt index 6d573d055..a1efd7c18 100644 --- a/crates/theme/tests/dumps/tokens/studio-dark-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/studio-dark-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #232325ff surface.sunken = #232326ff surface.knob = #ebebecff surface.scrim = #00000080 +surface.inverse = #ebebecff surface.shadow = #0000008c text.normal = #ececf0ff text.muted = #96969eff @@ -17,6 +18,7 @@ text.on_accent = #000000ff text.on_strong = #0c0c0eff text.on_status = #000000ff text.on_selected = #ebebecff +text.on_inverse = #0d0d0dff line.divider = #26262aff line.border = #28282cff line.control_edge = #343439ff diff --git a/crates/theme/tests/dumps/tokens/studio-light-high-comfortable.txt b/crates/theme/tests/dumps/tokens/studio-light-high-comfortable.txt index 310de3b24..60214be5c 100644 --- a/crates/theme/tests/dumps/tokens/studio-light-high-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/studio-light-high-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #f2f2f5ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262627ff surface.shadow = #00000032 text.normal = #18181cff text.muted = #45444eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #fafafcff text.on_status = #000000ff text.on_selected = #262627ff +text.on_inverse = #fcfcfcff line.divider = #e2e2e8ff line.border = #dedee4ff line.control_edge = #d6d6dcff diff --git a/crates/theme/tests/dumps/tokens/studio-light-high-compact.txt b/crates/theme/tests/dumps/tokens/studio-light-high-compact.txt index 2b734d0c3..d3e9b82bc 100644 --- a/crates/theme/tests/dumps/tokens/studio-light-high-compact.txt +++ b/crates/theme/tests/dumps/tokens/studio-light-high-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #f2f2f5ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262627ff surface.shadow = #00000032 text.normal = #18181cff text.muted = #45444eff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #fafafcff text.on_status = #000000ff text.on_selected = #262627ff +text.on_inverse = #fcfcfcff line.divider = #e2e2e8ff line.border = #dedee4ff line.control_edge = #d6d6dcff diff --git a/crates/theme/tests/dumps/tokens/studio-light-standard-comfortable.txt b/crates/theme/tests/dumps/tokens/studio-light-standard-comfortable.txt index 9daaaa4c8..fb2a7a819 100644 --- a/crates/theme/tests/dumps/tokens/studio-light-standard-comfortable.txt +++ b/crates/theme/tests/dumps/tokens/studio-light-standard-comfortable.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #f2f2f5ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262627ff surface.shadow = #00000032 text.normal = #18181cff text.muted = #60606aff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #fafafcff text.on_status = #000000ff text.on_selected = #262627ff +text.on_inverse = #fcfcfcff line.divider = #e2e2e8ff line.border = #dedee4ff line.control_edge = #d6d6dcff diff --git a/crates/theme/tests/dumps/tokens/studio-light-standard-compact.txt b/crates/theme/tests/dumps/tokens/studio-light-standard-compact.txt index e3baee9f6..f770f73c5 100644 --- a/crates/theme/tests/dumps/tokens/studio-light-standard-compact.txt +++ b/crates/theme/tests/dumps/tokens/studio-light-standard-compact.txt @@ -8,6 +8,7 @@ surface.raised = #ffffffff surface.sunken = #f2f2f5ff surface.knob = #fcfcfcff surface.scrim = #00000059 +surface.inverse = #262627ff surface.shadow = #00000032 text.normal = #18181cff text.muted = #60606aff @@ -17,6 +18,7 @@ text.on_accent = #ffffffff text.on_strong = #fafafcff text.on_status = #000000ff text.on_selected = #262627ff +text.on_inverse = #fcfcfcff line.divider = #e2e2e8ff line.border = #dedee4ff line.control_edge = #d6d6dcff diff --git a/crates/ui-widgets/src/notices/notice.rs b/crates/ui-widgets/src/notices/notice.rs index 4bcbaa47e..3ea55bb19 100644 --- a/crates/ui-widgets/src/notices/notice.rs +++ b/crates/ui-widgets/src/notices/notice.rs @@ -29,6 +29,10 @@ pub enum NoticeLayout { /// The inline layout on a floating surface, the card width wide where the room allows: a toast. A card of a status /// tone draws its edge and title in the tone's colour. Card, + /// The card on the inverse surface (`surface.inverse`, with `text.on_inverse`): light on a dark theme, dark on a + /// light one. Toasts use it. The size and layout are the card's; a status tone draws its icon and edge in the + /// tone's colour. + Toast, /// Icon, title, message and actions in a column centred in the room, at most the reading width wide: an empty /// state. The first action is the primary button and the others secondary, all as wide as the widest, side by side /// or stacked when they do not fit. @@ -530,8 +534,11 @@ impl Component for Notice<'_> { cx.tokens.space.gap.stack, ) } - NoticeLayout::Card => { - let fill = StyleColor(cx.surface(SurfaceKind::Floating).fill); + NoticeLayout::Card | NoticeLayout::Toast => { + let toast = key.layout == NoticeLayout::Toast; + let colors = &cx.tokens.color; + let fill = if toast { cx.color(colors.surface.inverse) } else { StyleColor(cx.surface(SurfaceKind::Floating).fill) }; + let normal = if toast { cx.color(colors.text.on_inverse) } else { normal }; let mut surface = SurfaceLook::new(Stateful::new(fill)).kind(SurfaceKind::Floating).radius(UiTokens::corner(cx.tokens.shape.radius.surface)); // A card of a status tone carries the tone on its edge and title; a neutral card keeps the surface's edge. @@ -539,7 +546,8 @@ impl Component for Notice<'_> { normal } else { surface = surface.border(stateful(tone), cx.tokens.stroke.thin).border_replaces_edge(); - tone + // Tone text is tuned for the ordinary surfaces, not the inverse one. + if toast { normal } else { tone } }; ( TextLook::new(TypeRole::BodyStrong, stateful(title)), @@ -589,7 +597,7 @@ impl Component for Notice<'_> { let width = match (self.layout, cx.room) { // The card is as wide as its text, up to the card width (padding included) where the room allows. A card // that hosts content (a progress bar) has no text width of its own and takes the card width. - (NoticeLayout::Card, room) => { + (NoticeLayout::Card | NoticeLayout::Toast, room) => { let padding = cx.style.metrics.padding; let cap = cx.style.card_width - padding.start - padding.end; let width = if self.content_sizes.is_empty() { natural.min(cap) } else { cap }; diff --git a/crates/ui-widgets/src/notices/toasts.rs b/crates/ui-widgets/src/notices/toasts.rs index f5b7ff253..0b00b4345 100644 --- a/crates/ui-widgets/src/notices/toasts.rs +++ b/crates/ui-widgets/src/notices/toasts.rs @@ -1,4 +1,4 @@ -//! The toast stack: draws the toast queue's cards as `Notice`s in `NoticeLayout::Card`. +//! The toast stack: draws the toast queue's cards as `Notice`s in `NoticeLayout::Toast`. use crate::contract::toast::{CardOutcome, ToastHost}; use crate::contract::{Props as _, Show as _}; @@ -24,8 +24,12 @@ impl ToastStack { /// Shows the queue at a bottom alignment of the body, or its locale's trailing bottom corner when `None`. pub fn show_at(ui: &Ui, window: &WindowKey, body: Rect, alignment: Option) { ToastHost::show_at(ui, window, body, alignment, &mut |ui, toast, salt| { - let mut notice = - Notice::new(toast.tone, toast.message.clone()).layout(NoticeLayout::Card).lines(toast.lines.clone()).dismiss().id_salt(salt); + let mut notice = Notice::new(toast.tone, toast.message.clone()).layout(NoticeLayout::Toast).lines(toast.lines.clone()).id_salt(salt); + // A toast that leaves by itself and offers no action has no close button, as the old apps' toasts; one the + // user must close (no timeout) or that holds actions keeps it. + if toast.timeout.is_none() || !toast.actions.is_empty() { + notice = notice.dismiss(); + } if let Some(title) = &toast.title { notice = notice.title(title.clone()); } diff --git a/crates/ui-widgets/tests/it/notices.rs b/crates/ui-widgets/tests/it/notices.rs index 9e1b6e03e..4098b45a9 100644 --- a/crates/ui-widgets/tests/it/notices.rs +++ b/crates/ui-widgets/tests/it/notices.rs @@ -184,3 +184,35 @@ fn a_card_is_as_wide_as_its_text_up_to_the_card_width() { assert!(short < long, "a short card is narrower than a long one: {short} vs {long}"); assert!(long < 400.0, "a long card wraps at the card width: {long}"); } + +fn luminance(color: egui::Color32) -> f32 { + f32::from(color.r()) * 0.2126 + f32::from(color.g()) * 0.7152 + f32::from(color.b()) * 0.0722 +} + +fn rect_fills(shapes: &[egui::Shape], out: &mut Vec<(Rect, egui::Color32)>) { + for shape in shapes { + match shape { + egui::Shape::Vec(inner) => rect_fills(inner, out), + egui::Shape::Rect(rect) if rect.fill.a() == 255 => out.push((rect.rect, rect.fill)), + _ => {} + } + } +} + +/// A toast sits on the inverse surface: light on a dark theme and dark on a light one, with its text the other way. +#[trial] +fn a_toast_is_light_on_a_dark_theme_and_dark_on_a_light_one() { + use craft_theme::{Contrast, Mode}; + for (mode, light_card) in [(Mode::Dark, true), (Mode::Light, false)] { + let mut fixture = Fixture::new(|ui| { + Notice::new(Tone::Neutral, "No recent files").layout(NoticeLayout::Toast).show(ui); + }); + fixture.theme(mode, Contrast::Standard).settle(); + let shapes = fixture.frame_shapes(); + let mut fills = Vec::new(); + rect_fills(&shapes, &mut fills); + let text = fixture.texts().iter().find(|run| run.text == "No recent files").expect("the message is painted").rect; + let card = fills.iter().filter(|(rect, _)| rect.contains_rect(text)).min_by(|a, b| a.0.area().total_cmp(&b.0.area())).expect("a card under the text"); + assert_eq!(luminance(card.1) > 128.0, light_card, "{mode:?}: the toast's card is {:?}", card.1); + } +} diff --git a/docs/suite-themes.md b/docs/suite-themes.md index 61b45466a..be0e7ad50 100644 --- a/docs/suite-themes.md +++ b/docs/suite-themes.md @@ -92,7 +92,7 @@ High contrast meets every minimum below: it moves pinned values that miss one. S | Pair | Standard | High | |---|---|---| | `text.normal`, `text.muted`, `text.faint` on surfaces (background, panel, chrome, raised, sunken), `state.hover` and `state.pressed` | 4.5 | 7 | -| `text.on_selected` on `state.selected` and `state.selected_hover` | 4.5 | 7 | +| `text.on_selected` on `state.selected` and `state.selected_hover`; `text.on_inverse` on `surface.inverse` | 4.5 | 7 | | `accent.text` on `surface.panel`, `surface.raised` and `surface.sunken`; `accent.on_soft` on `accent.soft` | 4.5 | 7 | | Status text (`status.good.fg` ...) on `surface.panel`, `surface.raised` and its own `status.*.bg` | 4.5 | 7 | | `text.on_accent` on `accent.solid`, `accent.hover` and `accent.pressed`; `text.on_strong` on `accent.strong`, `accent.strong_hover` and `accent.strong_pressed`; `text.on_status` on the status solids and their hover and pressed steps | 4.5 | 7 |