cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Karim Jerbi 8ef65f59f8 fix(ribbon): highlight toggle buttons by their actual state
The UCS Icon, Properties, File Tabs, and Layout Tabs buttons were highlighted unconditionally because their ids fell through to an active_tool equality check in is_active_tool, which activate_tool sets on every click and never clears. Each id is now mapped to its corresponding visibility flag (show_ucs_icon, show_properties, show_file_tabs, show_layout_tabs), and those flags are kept in sync from their toggle handlers so the highlight reflects live state. The per-toggle booleans previously threaded through the render path are consolidated into a single ToggleState struct read from one place, so introducing a further toggle no longer requires changing every render-function signature and call site.
2026-07-12 19:53:48 +03:00
..
popup feat(polar): angle picker dropdown on the POLAR pill (#264) 2026-07-09 21:35:47 +03:00
ribbon fix(ribbon): highlight toggle buttons by their actual state 2026-07-12 19:53:48 +03:00
statusbar fix(precision): keep typed coordinates exact in f64 (#311) 2026-07-11 21:26:40 +03:00
style fix(textstyle): live-update style manager preview (#102) 2026-06-29 17:29:04 +03:00
window refactor(config): consolidate settings into one grouped settings.json 2026-07-10 16:41:34 +03:00
color_select.rs chore: clear compiler warnings 2026-06-18 21:18:09 +03:00
command_line.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
icons.rs feat(save): native OS dialog for Save As, keep in-app format picker 2026-07-11 09:12:36 +03:00
mod.rs feat(ui): flex-wrap the ribbon top bar and status bar when narrow 2026-07-05 16:17:44 +03:00
modal.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
overlay.rs fix(stretch): free crossing-window corners from Ortho, draw filled marquee (#291) 2026-07-10 13:32:32 +03:00
properties.rs feat(hatch): editable gradient colors + background color 2026-07-08 23:35:27 +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
text_util.rs feat(ui): elide overflowing text, tooltip full layer name 2026-06-09 19:04:18 +03:00
wrap_bar.rs feat(viewport): hide ViewCube then render bar as the viewport narrows 2026-07-10 14:58:48 +03:00