From e657e408673087aae30d0b40a568537f714db3fa Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:44:48 -0400 Subject: [PATCH] UI kit gallery: entries for the controls added without one checked_field, checked_row and warning_caption (the fillet Setback check), text_field_tip (tap drills), continuity_row, continuity_row_explained and continuity_tip (the continuity choice) and steps (opening progress) are pub(crate) ui_kit functions with no gallery entry, which gallery_covers_every_inline_element requires of every one. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/ui_kit/gallery.rs | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/crates/ui-egui/src/ui_kit/gallery.rs b/crates/ui-egui/src/ui_kit/gallery.rs index faa4ea9363..396ebf9b0a 100644 --- a/crates/ui-egui/src/ui_kit/gallery.rs +++ b/crates/ui-egui/src/ui_kit/gallery.rs @@ -3,6 +3,7 @@ use super::*; use crate::ui_kit::{Container, Surface}; use crate::{scenario, theme::Tokens}; use egui::{Ui, vec2}; +use solidcraft_engine::kernel::Continuity; struct Sample { value: String, @@ -839,6 +840,35 @@ const ELEMENTS: &[Element] = &[ hint_field(ui, &mut s.value, "Length"); }); }), + element!("checked_field", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, s| { + row(ui, "Gallery", |ui| { + checked_field(ui, &mut s.value, "Length", s.checked); + }); + }), + element!("checked_row", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, s| { + checked_row(ui, "Gallery", &mut s.value, "Length", Some("Too small")); + }), + element!("warning_caption", "dialog:caption:Gallery", None, |ui, _| { + warning_caption(ui, "Gallery", "Too small"); + }), + element!("text_field_tip", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, s| { + row(ui, "Gallery", |ui| { + text_field_tip(ui, &mut s.value, "Name", "What it is called"); + }); + }), + element!("continuity_row", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, _| { + let mut order = Continuity::G1; + continuity_row(ui, "Gallery", "gallery_continuity", &mut order, &[Continuity::G0, Continuity::G1, Continuity::G2]); + }), + element!("continuity_row_explained", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, _| { + let mut order = Continuity::G2; + let allowed = [Continuity::G1, Continuity::G2]; + continuity_row_explained(ui, "Gallery", "gallery_continuity", &mut order, &allowed, &continuity_tip(&allowed)); + }), + element!("continuity_tip", "dialog:row:Gallery", None, |ui, _| { + let tip = continuity_tip(&[Continuity::G0, Continuity::G1]); + row(ui, "Gallery", |ui| ui.label(tip)); + }), element!("text_field", "dialog:row:Gallery", Some("dialog:Gallery"), |ui, s| { row(ui, "Gallery", |ui| { text_field(ui, &mut s.value, "Name"); @@ -1021,6 +1051,9 @@ const ELEMENTS: &[Element] = &[ element!("progress", "dialog:progress:gallery", None, |ui, _| { progress(ui, "gallery", 0.4); }), + element!("steps", "dialog:step:gallery:0:done", None, |ui, _| { + steps(ui, "gallery", &["Read", "Mesh", "Show"], 1, Some("40%")); + }), element!("hint", "dialog:hint:gallery", Some("dialog:hint:gallery"), |ui, _| { text(ui, "Pick a point", Text::Hint("gallery")); }),