feat(ui): heading bands for dialogs, sketch status label, tighter palette footer (#418)
- frame::heading draws a panel's title row (heading_bg) or a section heading (subheading_bg) on a band darker than the dialog, in both themes. Every docked command dialog, the Sketch Palette and Redefine Sketch Plane use it. - Sketch Palette: "Options" and a new "Sketch Status" heading are section bands; the status line sits under its own heading. - Sketch Palette: Finish Sketch no longer centres in the leftover height, so the palette ends one line below it, one line after the status. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
This commit is contained in:
9 files changed
+87
-14
No files matched your search
@@ -145,8 +145,9 @@ pub fn panel(app: &mut SolveApp, ctx: &egui::Context, at: Pos2) {
|
||||
.scroll([false, true])
|
||||
.show(ctx, |ui| {
|
||||
ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Wrap);
|
||||
ui.strong(format!("Redefine Sketch Plane: {name}"));
|
||||
ui.separator();
|
||||
// The wrapped notes below fill the width anyway, so the band may too.
|
||||
let width = ui.available_width();
|
||||
crate::frame::heading(ui, crate::frame::Level::Title, width, |ui| ui.strong(format!("Redefine Sketch Plane: {name}")));
|
||||
let saved_plane = match &status {
|
||||
FaceAttachmentStatus::Healthy { plane, target, path } => {
|
||||
ui.label(format!("Attached to {} / {}", target.body, path_label(app, path)));
|
||||
|
||||
Reference in new issue
Block a user