One frame for every window (frame.rs): command dialogs dock right and shrink to their content (260 to 380 px, 560 for table dialogs), floating windows are centred and capped (460 px, 760 for tables); header and footer rows right-align without stretching the dialog, long texts wrap; all windows migrated; tests: no egui::Window outside frame.rs, every command's dialog and the floating windows measured within limits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
74c7259825
commit
3f44110b59
16 files changed
+684
-483
No files matched your search
@@ -1453,9 +1453,8 @@ fn show_props(app: &mut SolveApp, ctx: &egui::Context) {
|
||||
let Some((title, v)) = app.menu.props.clone() else { return };
|
||||
let mut open = true;
|
||||
let f = |x: &Value, k: &str| x.get(k).and_then(Value::as_f64).unwrap_or(f64::NAN);
|
||||
egui::Window::new(format!("Properties: {title}"))
|
||||
crate::frame::window(ctx, format!("Properties: {title}"), crate::frame::Width::Normal)
|
||||
.id(egui::Id::new("sc_props"))
|
||||
.default_pos(ctx.content_rect().center() - vec2(160.0, 140.0))
|
||||
.open(&mut open)
|
||||
.resizable(false)
|
||||
.collapsible(false)
|
||||
|
||||
Reference in new issue
Block a user