cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven e6213eafbb feat(ui): shared in-canvas modal overlay; migrate About (Plan B)
Start Plan B — replace the daemon's pop-up OS windows with in-canvas
modal overlays so dialogs work identically on native (one main window)
and web (canvas only).

- New `ui::modal::modal(base, content, on_close)`: dims the view behind
  a backdrop that blocks clicks but does NOT dismiss, frames the content,
  and adds a top-right ✕ as the sole close affordance. Sizes to the
  content (no `Fill`), so dialogs shrink to fit.
- view_main stacks the active modal on top, so both run paths show it.
- Migrate About as the pilot: `about_open` bool + AboutOpen/AboutClose
  instead of an OS window; About's view shrinks to content.

Remaining dialogs migrate to the same pattern next. Native + 75 tests OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 18:59:13 +03:00
..
ribbon feat(ui): show RGB for unnamed palette colours instead of "Index" 2026-06-14 14:27:35 +03:00
about.rs feat(ui): shared in-canvas modal overlay; migrate About (Plan B) 2026-06-16 18:59:13 +03:00
app_menu.rs fix(menu): close the main menu when opening a recent file 2026-06-16 03:51:45 +03:00
color_select.rs feat(ui): show RGB for unnamed palette colours instead of "Index" 2026-06-14 14:27:35 +03:00
command_line.rs fix(wasm): make the web build actually run in the browser 2026-06-16 17:53:56 +03:00
cycle_popup.rs fix(statusbar): cycling-list hover highlight on row re-entry 2026-06-05 00:05:15 +03:00
dimstyle.rs feat(ui): move full ACI palette to a separate "Select Color" window (#94) 2026-06-14 11:14:14 +03:00
isolate_popup.rs feat(statusbar): isolate action menu on the pill and right-click 2026-06-04 23:17:21 +03:00
layers.rs feat(ui): use the shared colour selector in properties, ribbon and layers 2026-06-14 14:22:24 +03:00
layout_manager.rs cargo fmt 2026-05-12 10:36:15 +03:00
mleaderstyle.rs feat(ui): move full ACI palette to a separate "Select Color" window (#94) 2026-06-14 11:14:14 +03:00
mlstyle.rs feat(styles): make style managers transactional — persist only on Apply 2026-06-10 15:38:32 +03:00
mod.rs feat(ui): shared in-canvas modal overlay; migrate About (Plan B) 2026-06-16 18:59:13 +03:00
modal.rs feat(ui): shared in-canvas modal overlay; migrate About (Plan B) 2026-06-16 18:59:13 +03:00
open_progress.rs feat(io): show loading overlay while opening CAD files 2026-05-13 09:59:07 +03:00
overlay.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
page_setup.rs cargo fmt 2026-05-12 10:36:15 +03:00
plotstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
plugin_manager.rs feat(plugin): add a Plugin Manager window listing installed add-ons 2026-06-15 01:46:09 +03:00
properties.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
scale_popup.rs feat(scale): drive scales from the drawing's scale list 2026-06-04 16:18:01 +03:00
selection_filter_popup.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
shortcuts.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
side_toolbar.rs feat(ui): right-edge side toolbar; drop the paper-space ribbon tab 2026-06-12 02:07:26 +03:00
snap_popup.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
statusbar.rs fix(layout): focus inline rename field on RENAME 2026-06-12 14:18:31 +03:00
statusbar_config.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
statusbar_menu.rs feat(statusbar): customizable pills with coordinates and clean screen 2026-06-04 19:14:04 +03:00
style_list.rs feat(styles): green ✓ for current style + resolve it from DWG files 2026-06-10 15:56:13 +03:00
style_manager.rs feat(styles): green ✓ for current style + resolve it from DWG files 2026-06-10 15:56:13 +03:00
tablestyle.rs feat(ui): move full ACI palette to a separate "Select Color" window (#94) 2026-06-14 11:14:14 +03:00
text_util.rs feat(ui): elide overflowing text, tooltip full layer name 2026-06-09 19:04:18 +03:00
textstyle.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
units_popup.rs feat(statusbar): drawing-units pill with INSUNITS picker 2026-06-04 22:06:42 +03:00
update_notice.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00