From 6e4d505601f44dedab4f4f17f94a58c61311a5b5 Mon Sep 17 00:00:00 2001 From: Martin Ball <98639962+benandez@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:18:33 +0000 Subject: [PATCH 1/5] fix(theme): a disabled solid button's label reads and the button stays unlike the enabled one (wordcraft#7978) (#4030) The label of a disabled solid button is moved off its dimmed fill until it has 4.5:1, and the fill is dimmed until it is 1.5:1 from the enabled fill (towards black or white where the theme's disabled fill is itself close to the solid colour), in every built-in theme and contrast setting. Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx Co-authored-by: Claude Opus 5.5 --- crates/theme/src/variant.rs | 31 +++++++++++++++++++++-- crates/theme/tests/disabled_solid.rs | 37 ++++++++++++++++++++++++++++ crates/theme/tests/main.rs | 1 + 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 crates/theme/tests/disabled_solid.rs diff --git a/crates/theme/src/variant.rs b/crates/theme/src/variant.rs index 02046db83f..e0f77dac3b 100644 --- a/crates/theme/src/variant.rs +++ b/crates/theme/src/variant.rs @@ -227,8 +227,30 @@ impl VariantLook { // A disabled solid button keeps its shape: its solid colour dimmed towards the disabled fill, which alone // would match the panel and leave only the label. Emphasis::Solid => { - let dimmed = crate::derive::mix(solid, c.state.disabled_fill, DISABLED_SOLID_DIM); - VariantLook::new(States::new(solid, solid_hover, solid_pressed, dimmed), text(on_solid)).radius(button) + // Dimmed towards the disabled fill until it differs from the enabled fill by + // `DISABLED_SOLID_SEPARATION`, so a dark theme's disabled button is not taken for an enabled one. A theme + // whose disabled fill is itself close to the solid colour dims towards black, then white, instead. + let dim = |to: Rgba| { + let mut at = DISABLED_SOLID_DIM; + let mut fill = crate::derive::mix(solid, to, at); + while at < DISABLED_SOLID_DIM_MAX && crate::contrast::contrast_ratio(fill, solid) < DISABLED_SOLID_SEPARATION { + at += 0.05; + fill = crate::derive::mix(solid, to, at); + } + fill + }; + let apart = |fill: Rgba| crate::contrast::contrast_ratio(fill, solid) >= DISABLED_SOLID_SEPARATION; + let dimmed = [c.state.disabled_fill, Rgba::BLACK, Rgba::WHITE] + .into_iter() + .map(dim) + .find(|fill| apart(*fill)) + .unwrap_or_else(|| dim(c.state.disabled_fill)); + // Its label is the disabled ink moved off the dimmed fill until it reads (4.5:1): the disabled grey alone + // is pale on a pale blue block and says nothing. + let label = + crate::contrast::ensure_contrast(c.text.disabled, dimmed, crate::contrast::text_contrast_min(crate::theme::Contrast::Standard)); + let text = States::new(on_solid, on_solid, on_solid, label); + VariantLook::new(States::new(solid, solid_hover, solid_pressed, dimmed), text).radius(button) } Emphasis::Soft => VariantLook::new(States::new(soft_fill, soft_fill, soft_fill, c.state.disabled_fill), text(fg)) .edge(States::new(edge, edge, edge, c.line.divider)) @@ -256,6 +278,11 @@ impl VariantLook { /// How far a disabled solid fill moves from its solid colour to the disabled fill. const DISABLED_SOLID_DIM: f64 = 0.5; +/// The least contrast ratio between a disabled solid fill and the enabled one, and how far the fill may be dimmed to +/// get it. +const DISABLED_SOLID_SEPARATION: f64 = 1.5; +const DISABLED_SOLID_DIM_MAX: f64 = 0.95; + /// A look for one component's style key, built in a `const`. It describes itself; nothing registers it. #[derive(Clone, Copy)] pub struct CustomVariant { diff --git a/crates/theme/tests/disabled_solid.rs b/crates/theme/tests/disabled_solid.rs new file mode 100644 index 0000000000..ad4f66e2e7 --- /dev/null +++ b/crates/theme/tests/disabled_solid.rs @@ -0,0 +1,37 @@ +//! A disabled solid button (primary, danger) keeps a readable label and stays clearly unlike the enabled one in every +//! built-in theme and contrast setting (wordcraft#7978). + +use craft_theme::contrast::contrast_ratio; +use craft_theme::{Appearance, Contrast, Mode, Size, TextSize, Variant, Variants, builtins, resolve}; + +/// Least contrast ratio between the disabled fill and the enabled one. +const FILL_SEPARATION: f64 = 1.5; + +#[test] +fn disabled_solid_label_reads_and_the_button_is_not_the_enabled_one() { + for theme in builtins() { + // Classic draws a disabled button with its bevel; its pinned greys are not this look. + if theme.name == "Classic" { + continue; + } + let modes = match theme.variants { + Variants::Both => vec![Mode::Light, Mode::Dark], + Variants::LightOnly => vec![Mode::Light], + Variants::DarkOnly => vec![Mode::Dark], + }; + for mode in modes { + for contrast in [Contrast::Standard, Contrast::High] { + let appearance = Appearance { mode, contrast, size: Size::Comfortable, text_size: TextSize::Small, reduced_motion: false }; + let tokens = resolve(theme, appearance, None).tokens; + for variant in [Variant::PRIMARY, Variant::DANGER] { + let look = variant.resolve(&tokens); + let who = format!("{} {mode:?} {contrast:?} {variant:?}", theme.name); + let label = contrast_ratio(look.text.disabled, look.fill.disabled); + assert!(label >= 4.5, "{who}: disabled label is {label:.2}:1"); + let apart = contrast_ratio(look.fill.disabled, look.fill.rest); + assert!(apart >= FILL_SEPARATION, "{who}: disabled fill is {apart:.2}:1 from the enabled one"); + } + } + } + } +} diff --git a/crates/theme/tests/main.rs b/crates/theme/tests/main.rs index 4d6775696c..a859c26c6a 100644 --- a/crates/theme/tests/main.rs +++ b/crates/theme/tests/main.rs @@ -1,5 +1,6 @@ //! Integration tests, built into the library's own test executable. +mod disabled_solid; mod dumps; mod selection; mod strong_hover; From 1a09c8ad77449f748f8dcb2cd7d4b05c419662b1 Mon Sep 17 00:00:00 2001 From: Martin Ball <98639962+benandez@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:18:37 +0000 Subject: [PATCH 2/5] ListManager list keeps its height; tabbed Colors dialog's Standard page shows the compare block (storytold/wordcraft#7979, #7984) (#4032) * fix(list-manager): the list takes height from its rows so the empty message and rows clear the section under it (storytold/wordcraft#7979) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx * fix(color-ui): the tabbed dialog's Standard page shows the compare block Part of storytold/wordcraft#7984. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx --------- Co-authored-by: Claude Opus 5.5 --- crates/color-ui/src/ui/picker_dialog.rs | 56 +++++++++++++------ crates/color-ui/tests/it/picker.rs | 9 +++ .../src/patterns/form_dialogs/list_manager.rs | 10 ++++ .../tests/it/form_dialogs/list_manager.rs | 18 ++++++ 4 files changed, 75 insertions(+), 18 deletions(-) diff --git a/crates/color-ui/src/ui/picker_dialog.rs b/crates/color-ui/src/ui/picker_dialog.rs index 98e6125e2c..e646baf396 100644 --- a/crates/color-ui/src/ui/picker_dialog.rs +++ b/crates/color-ui/src/ui/picker_dialog.rs @@ -24,7 +24,7 @@ use craft_ui::dialog::{ ButtonPlace, Dialog, DialogId, DialogResult, DialogStack, FieldRefusal, StackDialog, dialog_id, serde_fields, set_serde_field, }; use craft_ui::layout::{CellAlign, GridFit}; -use craft_ui::layout_components::{Grid, Stack}; +use craft_ui::layout_components::{Grid, Row, Stack}; use craft_ui::notices::{Notice, NoticeLayout}; use craft_ui::patterns::form_dialogs::{HostRequests, ResetFooter}; use craft_ui::pickers::Select; @@ -41,7 +41,7 @@ use std::borrow::Cow; use std::sync::Arc; use super::picker::TWO_COLUMNS; -use super::{ColorPicker, ColorPickerLayout, ColorWarning, Gamut, PickedColor, ScreenPickGesture, SwatchPalette}; +use super::{ColorPicker, ColorPickerLayout, ColorPickerWords, ColorWarning, CompareSwatch, Gamut, PickedColor, ScreenPickGesture, SwatchPalette}; use crate::{AreaMode, CmykModel, not_web_safe, web_safe}; type StandardColors = (Vec<(Label, Srgba)>, Vec<(Label, Srgba)>); @@ -318,27 +318,47 @@ impl TabbedBody<'_> { let (cells, greys) = self.standard.map_or((&[][..], &[][..]), |(cells, greys)| (cells.as_slice(), greys.as_slice())); let current = held.same().map(|picked| picked.color); let mut pick = None; - Stack::new().show(ui, |ui, _| { - let honeycomb = SwatchTable::new(self.words.standard_colors.clone(), cells) - .arrangement(SwatchArrangement::Honeycomb) - .tips(true) - .selection(Bind::given(chosen(cells, current))) - .show_all(ui); - if let Some(at) = honeycomb.selected { - pick = cells.get(at).map(|(_, color)| *color); - } - let row = SwatchTable::new(self.words.greys.clone(), greys) - .per_row(greys.len().max(1)) - .tips(true) - .selection(Bind::given(chosen(greys, current))) - .show_all(ui); - if let Some(at) = row.selected { - pick = greys.get(at).map(|(_, color)| *color); + let mut restore = None; + // The compare block stands beside the honeycomb, as it does beside the Custom page's area. + Row::new().show(ui, |ui, _| { + Stack::new().show(ui, |ui, _| { + let honeycomb = SwatchTable::new(self.words.standard_colors.clone(), cells) + .arrangement(SwatchArrangement::Honeycomb) + .tips(true) + .selection(Bind::given(chosen(cells, current))) + .show_all(ui); + if let Some(at) = honeycomb.selected { + pick = cells.get(at).map(|(_, color)| *color); + } + let row = SwatchTable::new(self.words.greys.clone(), greys) + .per_row(greys.len().max(1)) + .tips(true) + .selection(Bind::given(chosen(greys, current))) + .show_all(ui); + if let Some(at) = row.selected { + pick = greys.get(at).map(|(_, color)| *color); + } + }); + if let Some(compare) = self.compare { + let new = held.same().map_or(Mixed::Mixed, |picked| Mixed::Same(picked.color)); + let current = match compare { + Mixed::Same(current) => Mixed::Same(current.color), + Mixed::Mixed => Mixed::Mixed, + }; + let label = Env::of(ui).words::().new_color.clone(); + if CompareSwatch::new(label, new, current).show(ui).restore + && let Mixed::Same(current) = compare + { + restore = Some(current); + } } }); if let Some(color) = pick { *held = Mixed::Same(PickedColor::rgb(color)); } + if let Some(current) = restore { + *held = Mixed::Same(current); + } } /// The compact picker over the colour, the compare swatch beside its area; the model switch is the memory's. diff --git a/crates/color-ui/tests/it/picker.rs b/crates/color-ui/tests/it/picker.rs index 6e6ab0d54a..d6dc9368a8 100644 --- a/crates/color-ui/tests/it/picker.rs +++ b/crates/color-ui/tests/it/picker.rs @@ -597,6 +597,15 @@ fn the_tabbed_colors_dialog_opens_on_its_tab_and_answers_from_either_page() { fixture.click(&cell); fixture.idle(4); assert_eq!(dialog_color(&dialogs).as_deref(), Some("#0000ff"), "a honeycomb pick is the colour"); + // #7984: the Standard page shows the compare block too, and its current half restores the opening colour. + assert!(fixture.by_label("New color").is_some(), "the Standard page shows the compare block"); + let restore = fixture.by_label("Restore current color").expect("the compare block's current half"); + fixture.click(&restore); + fixture.idle(4); + assert_eq!(dialog_color(&dialogs).as_deref(), Some("#123456"), "the current half restores the opening colour"); + let cell = fixture.by_label("Standard 2").expect("the honeycomb shows its cells"); + fixture.click(&cell); + fixture.idle(4); assert!(dialogs.borrow_mut().confirm::(&ctx), "OK answers"); let answered = dialogs.borrow_mut().take::().and_then(DialogResult::ok).map(|result| result.picked.color.to_hex()); diff --git a/crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs b/crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs index e55e0b01be..0d1a14559b 100644 --- a/crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs +++ b/crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs @@ -2,6 +2,7 @@ use crate::contract::{ Bind, BodyCx, CollectionEvent, NoValue, Outcome, Props as _, Remember as _, SelectMode, Show as _, ShowCollection as _, ShowContainer as _, + Sizing, }; use crate::dialog::{ButtonPlace, Dialog, DialogId, DialogOutput, DialogResult, DialogStack, StackDialog}; use crate::display::{Shade, Text}; @@ -321,6 +322,10 @@ impl StackDialog for HostedListManager { } } +/// The fewest rows the list is tall, and the most it shows before it scrolls. +const MIN_ROWS: u16 = 8; +const MAX_ROWS: u16 = 12; + /// The name box's text in `bind`: empty while a kept binding holds none. fn text_of(bind: &mut Bind<'_, String>, cx: &mut BodyCx<'_>) -> String { match bind.reborrow().read(cx) { @@ -556,6 +561,11 @@ impl<'a> ListManager<'a> { .id(list_id) .select(SelectMode::Single) .allow_empty(true) + // A capped list is sized from its rows: without a cap it takes no height in a dialog that sizes to its + // content, and the empty message or the first rows are drawn over the section under it. + .sizing(Sizing::Content) + .min_rows(MIN_ROWS) + .max_rows(MAX_ROWS) .deletable(true) .selection(Bind::bound(&mut selection)); if let Some(empty) = &empty { diff --git a/crates/ui-patterns/tests/it/form_dialogs/list_manager.rs b/crates/ui-patterns/tests/it/form_dialogs/list_manager.rs index c49254dd4b..1ee0941a06 100644 --- a/crates/ui-patterns/tests/it/form_dialogs/list_manager.rs +++ b/crates/ui-patterns/tests/it/form_dialogs/list_manager.rs @@ -267,3 +267,21 @@ fn a_hosted_list_manager_hands_over_kept_open_choices_and_answers_with_the_closi let answered = host.borrow_mut().take::(); assert!(matches!(&answered, Some(DialogResult::Ok(run)) if run.action == "run" && run.entry.as_deref() == Some("a")), "{answered:?}"); } + +// #7979: with no entries the empty message stands in the list's own box, above the section under it, not over it. +#[trial] +fn an_empty_list_keeps_its_box_above_the_section_under_it() { + let mut fixture = Fixture::new(|ui| { + let actions = vec![ListManagerAction::new("add", "Add", ActionEnabled::OnNewName).keeps_open()]; + let _ = ListManager::new("Marks", "Name:", Vec::new(), actions) + .empty(craft_ui::runtime::env::Label::Static("No marks yet.")) + .under_list(|ui| { + Text::new("Under the list").show(ui); + }) + .show(ui); + }); + fixture.idle(10); + let empty = fixture.by_label("No marks yet.").expect("the empty message"); + let under = fixture.by_label("Under the list").expect("the section under the list"); + assert!(empty.rect.max.y <= under.rect.min.y, "the message {:?} clears the section {:?}", empty.rect, under.rect); +} From 7c058a1d2dc40acf93a5f95be4bce27d61bd1128 Mon Sep 17 00:00:00 2001 From: Martin Ball <98639962+benandez@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:18:42 +0000 Subject: [PATCH 3/5] fix(menu): GalleryFace::rendered gets a checker switch (#4027) (#4059) Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx Co-authored-by: Claude Opus 5.5 --- crates/menu/src/ribbon/gallery.rs | 18 ++++++++++++++++-- crates/menu/src/ribbon/gallery/stories.rs | 5 ++--- crates/menu/tests/it/ribbon_gallery.rs | 23 +++++++++++++++++++++++ 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/crates/menu/src/ribbon/gallery.rs b/crates/menu/src/ribbon/gallery.rs index 683fb76fb2..08f9683a10 100644 --- a/crates/menu/src/ribbon/gallery.rs +++ b/crates/menu/src/ribbon/gallery.rs @@ -226,6 +226,8 @@ pub enum GalleryFace<'a> { thumbnails: &'a Thumbnails, /// What renders the thumbnail. source: &'a dyn ThumbSource, + /// Whether the transparency grid shows behind transparent pixels. + checker: bool, }, /// A tile painted directly. Paint(&'a dyn Fn(&ContentPainterCx, Rect)), @@ -250,7 +252,17 @@ impl<'a> GalleryFace<'a> { /// A thumbnail under `key`, rendered by `source` into `thumbnails`. pub fn rendered(key: u64, thumbnails: &'a Thumbnails, source: &'a dyn ThumbSource) -> Self { - GalleryFace::Rendered { key, thumbnails, source } + GalleryFace::Rendered { key, thumbnails, source, checker: true } + } + + /// Whether a rendered thumbnail shows the transparency grid behind its transparent pixels (default on). Off for a + /// thumbnail that is a mask on the surface it sits on, such as an equation symbol. Other faces ignore it. + #[must_use] + pub fn checker(mut self, on: bool) -> Self { + if let GalleryFace::Rendered { checker, .. } = &mut self { + *checker = on; + } + self } /// The picture this face shows, `size` high and `aspect` times as wide. It is decoration: the tile that holds it @@ -258,7 +270,9 @@ impl<'a> GalleryFace<'a> { fn picture(&self, aspect: ThumbAspect, size: ThumbSize) -> Picture<'a> { let picture = match self { GalleryFace::Image { key, revision, image } => Picture::new(Label::default(), *key, *image).revision(*revision), - GalleryFace::Rendered { key, thumbnails, source } => Picture::rendered(Label::default(), *key, thumbnails, *source), + GalleryFace::Rendered { key, thumbnails, source, checker } => { + Picture::rendered(Label::default(), *key, thumbnails, *source).checker(*checker) + } GalleryFace::Paint(paint) => { let paint = *paint; Picture::painter(Label::default(), aspect, move |cx: &ContentPainterCx<'_>, rect: Rect| paint(cx, rect)) diff --git a/crates/menu/src/ribbon/gallery/stories.rs b/crates/menu/src/ribbon/gallery/stories.rs index 786f074e2b..2a80c79e78 100644 --- a/crates/menu/src/ribbon/gallery/stories.rs +++ b/crates/menu/src/ribbon/gallery/stories.rs @@ -172,8 +172,7 @@ fn gallery_rendered(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { let options = ThumbnailOptions::new(); let thumbnails = Thumbnails::::in_context(ui.ctx(), "craft_menu.gallery.story", options); let source = FakeThumbSource::::new().later(true); - let items: Vec> = (0..COUNT) - .map(|at| GalleryItem { key: at, label: name(at), face: GalleryFace::Rendered { key: at as u64, thumbnails: &thumbnails, source: &source } }) - .collect(); + let items: Vec> = + (0..COUNT).map(|at| GalleryItem { key: at, label: name(at), face: GalleryFace::rendered(at as u64, &thumbnails, &source) }).collect(); show(ui, &items) } diff --git a/crates/menu/tests/it/ribbon_gallery.rs b/crates/menu/tests/it/ribbon_gallery.rs index 44abf3d767..93e83d0e78 100644 --- a/crates/menu/tests/it/ribbon_gallery.rs +++ b/crates/menu/tests/it/ribbon_gallery.rs @@ -263,3 +263,26 @@ fn the_current_tile_paints_an_accent_fill_and_edge_even_when_focused() { assert!(shapes.iter().any(|p| p.fill == fill && near(p, current)), "{who}: the focused current tile keeps its fill"); } } + +/// How many shapes a gallery of one rendered tile of a transparent image paints, as built or with `checker(false)`. +fn shapes_of_rendered(opt_out: bool) -> usize { + use craft_ui::primitives::textures::{FakeThumbSource, ThumbnailOptions, Thumbnails}; + let mut fixture = Fixture::new(move |ui| { + let options = ThumbnailOptions::new().jobs(std::sync::Arc::new(craft_host::InlineJobs)); + let thumbnails = Thumbnails::::in_context(ui.ctx(), "gallery_checker_test", options); + let source = FakeThumbSource::::new(); + // The default case sets nothing, so a default that turned the grid off fails here. + let face = GalleryFace::rendered(1, &thumbnails, &source); + let face = if opt_out { face.checker(false) } else { face }; + let items = [GalleryItem { key: 0_usize, label: Label::from("Mask"), face }]; + Gallery::new("Symbols", &items, None).tiles(1, 1).show(ui); + }); + fixture.settle(); + fixture.frame_shapes().len() +} + +#[trial] +fn a_rendered_gallery_tile_paints_a_checker_unless_it_opts_out() { + let (with, without) = (shapes_of_rendered(false), shapes_of_rendered(true)); + assert!(with > without, "the default paints {with} shapes, the opt-out {without}: the grid is the difference"); +} From bd4f24ac1e5253f277a34238409bc5bbd8fa7cef Mon Sep 17 00:00:00 2001 From: Martin Ball <98639962+benandez@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:18:48 +0000 Subject: [PATCH 4/5] fix(ui-patterns): a preferences text row takes a placeholder (#4028) (#4091) Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx Co-authored-by: Claude Sonnet 5.5 --- .../src/patterns/preferences/model.rs | 11 ++++++- .../src/patterns/preferences/rows.rs | 12 +++++--- .../ui-patterns/tests/it/preferences/page.rs | 30 +++++++++++++++++++ 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/crates/ui-patterns/src/patterns/preferences/model.rs b/crates/ui-patterns/src/patterns/preferences/model.rs index 944993fa5a..dd729063ef 100644 --- a/crates/ui-patterns/src/patterns/preferences/model.rs +++ b/crates/ui-patterns/src/patterns/preferences/model.rs @@ -126,6 +126,8 @@ pub struct RowSpec<'a> { /// default a drop-down, and on a card ([`PreferencesLayout::Cards`](super::PreferencesLayout::Cards)) a short /// choice of up to five options is segmented. Ignored by other kinds. pub pills: Option, + /// A [`RowKind::Text`] row: the translated text shown while the field is empty. Ignored by other kinds. + pub placeholder: Option<&'a str>, /// The control and the value it shows. pub kind: RowKind<'a>, } @@ -133,7 +135,7 @@ pub struct RowSpec<'a> { impl<'a> RowSpec<'a> { /// A visible, enabled row with no keywords or help. pub fn new(key: &'a str, label: &'a str, kind: RowKind<'a>) -> Self { - Self { key, label, keywords: "", help: None, visible: true, enabled: true, step: None, pills: None, kind } + Self { key, label, keywords: "", help: None, visible: true, enabled: true, step: None, pills: None, placeholder: None, kind } } /// Sets extra search text for the row. @@ -171,6 +173,13 @@ impl<'a> RowSpec<'a> { self } + /// Sets the text a [`RowKind::Text`] row shows while empty. + #[must_use] + pub fn placeholder(mut self, placeholder: &'a str) -> Self { + self.placeholder = Some(placeholder); + self + } + /// Sets the step of a [`RowKind::Float`] row. #[must_use] pub fn step(mut self, step: f64) -> Self { diff --git a/crates/ui-patterns/src/patterns/preferences/rows.rs b/crates/ui-patterns/src/patterns/preferences/rows.rs index 82c66c8ec2..700848cb2e 100644 --- a/crates/ui-patterns/src/patterns/preferences/rows.rs +++ b/crates/ui-patterns/src/patterns/preferences/rows.rs @@ -39,7 +39,7 @@ pub(super) enum Kind { Int { value: i64, range: RangeInclusive, unit: Option, unit_text: Option