diff --git a/crates/pages/src/ui/table/properties.rs b/crates/pages/src/ui/table/properties.rs index 2c0f0b82f..c4a657bf2 100644 --- a/crates/pages/src/ui/table/properties.rs +++ b/crates/pages/src/ui/table/properties.rs @@ -6,7 +6,7 @@ use craft_behavior::{Mixed, Value}; use craft_ui::buttons::Button; use craft_ui::choice::Checkbox; -use craft_ui::contract::{Bind, Entry, LabelScheme, NoValue, Outcome, Props as _, Show as _, ShowContainer as _, clicked}; +use craft_ui::contract::{Bind, Entry, NoValue, Outcome, Props as _, Show as _, ShowContainer as _, clicked}; use craft_ui::form::{Field, FieldGroup}; use craft_ui::pickers::Select; use craft_ui::runtime::env::{Env, Label, UnitKind}; @@ -231,7 +231,7 @@ impl<'a> TableProperties<'a> { let words = Env::of(ui).words::(); let (v, unit) = (self.values, self.unit); let mut change = None; - let shown = FieldGroup::new(words.table.clone()).labels(LabelScheme::Inspector).show(ui, |ui, _| { + let shown = FieldGroup::new(words.table.clone()).show(ui, |ui, _| { let mut set = |next: Option| change = change.take().or(next); set(count(ui, &words.rows, v.rows, 1, TableChange::Rows)); set(count(ui, &words.columns, v.columns, 1, TableChange::Columns)); diff --git a/crates/ui-widgets/src/text/number/stories.rs b/crates/ui-widgets/src/text/number/stories.rs index a8831ae98..3f88e4357 100644 --- a/crates/ui-widgets/src/text/number/stories.rs +++ b/crates/ui-widgets/src/text/number/stories.rs @@ -1,7 +1,6 @@ //! Stories of `NumberField`. use super::{NumberField, NumberPick}; -use crate::contract::LabelScheme; use crate::contract::{Bind, Entry, Props as _, Show as _, ShowContainer as _, Validity}; use crate::form::{Field, FieldGroup}; use crate::runtime::env::{Env, Message, UnitKind}; @@ -18,7 +17,7 @@ const RANGE: std::ops::RangeInclusive = 0.0..=100.0; /// The range of the Invalid rows: the value 7 lies inside it. const COLUMNS: std::ops::RangeInclusive = 1.0..=12.0; -/// A row of the states story, in the group's inspector rows. +/// A row of the states story, in the group's form rows. fn row(label: &'static str) -> Field { Field::new(label).id_salt(label) } @@ -44,7 +43,7 @@ fn refuse_all(_: &Option) -> Validity> { fn number_field(ui: &mut Ui, data: &mut StoryData) -> StoryOutput { let size = *data.choice("control_size", ControlSize::Md, &[("Sm", ControlSize::Sm), ("Md", ControlSize::Md)]); let units = Env::of(ui).view().units(); - let out = FieldGroup::new("Number field states").labels(LabelScheme::Inspector).show(ui, |ui, _| { + let out = FieldGroup::new("Number field states").show(ui, |ui, _| { let first = row("Plain").show(ui, |ui, _| NumberField::new("Plain", Bind::bound(data.value("plain", Some(42.0)))).size(size).show(ui).edit); row("With unit").show(ui, |ui, _| { NumberField::new("Gap", Bind::bound(data.value("gap", Some(SIZE))))