Commit Graph
14 Commits
Author SHA1 Message Date
JonathanandCopilot 73ba2ba615 Adjust: Add top padding to Copy/Clear buttons
- Add 2px top padding for breathing room above buttons
- Buttons now start above the resize slider area
- Improves visual spacing at top of command history panel

Co-authored-by: Copilot <[email protected]>
2026-09-09 09:10:35 +02:00
JonathanandCopilot 8fe3ceb2e4 Fix: Position Copy/Clear buttons at top of command history
- Remove top padding from panel container (0 instead of 4)
- Buttons now start flush at top edge above scrollbar
- Improves visual alignment and space usage

Co-authored-by: Copilot <[email protected]>
2026-09-09 09:04:26 +02:00
JonathanandCopilot 275f10d49b Fix: Align Copy/Clear buttons at right edge
- Increase header container right padding from 6 to 8 pixels
- Ensures Copy and Clear buttons align consistently with top alignment
- Improves visual spacing on the right side for cleaner UI appearance

Co-authored-by: Copilot <[email protected]>
2026-09-09 09:00:39 +02:00
JonathanandCopilot f98719cfd3 Fix: Enable clipboard copy for web/browser via system clipboard API
- Modify COPYCLIP command to write entities as JSON to system clipboard
- Modify CUTCLIP command to write cut entities as JSON to system clipboard
- Modify COPYBASE_AT command to write copied entities as JSON to system clipboard
- Entities are serialized as JSON with base point coordinates for cross-platform support
- Clipboard data format: OCS_CLIPBOARD_JSON header + base point + entity data
- Works in web (WASM) build via Clipboard API and native builds via iced clipboard

This fixes the issue where copy command didn't persist to system clipboard in web browser,
allowing proper paste operations and clipboard sharing between application instances.

Co-authored-by: Copilot <[email protected]>
2026-09-09 08:55:34 +02:00
JonathanandCopilot 3700f5abfb Fix: Enable clipboard copy for web/browser via system clipboard API
- Modify COPYCLIP command to write entities as JSON to system clipboard
- Modify CUTCLIP command to write cut entities as JSON to system clipboard
- Modify COPYBASE_AT command to write copied entities as JSON to system clipboard
- Entities are serialized as JSON with base point coordinates for cross-platform support
- Clipboard data format: OCS_CLIPBOARD_JSON header + base point + entity data
- Works in web (WASM) build via Clipboard API and native builds via iced clipboard

This fixes the issue where copy command didn't persist to system clipboard in web browser,
allowing proper paste operations and clipboard sharing between application instances.

Co-authored-by: Copilot <[email protected]>
2026-09-09 08:54:16 +02:00
JonathanandCopilot b3e3555f4f Adjust plus button spacing next to Start tab
- Changed button padding from [5, 10] to [4, 8] to match layout tabs
- Changed container left padding from 6.0 to 2.0 for consistent spacing
- Plus button now has same distance from Start tab as from Layout tabs

Co-authored-by: Copilot <[email protected]>
2026-09-09 07:48:26 +02:00
JonathanandCopilot 6616111fbf Fix Architectural and Engineering inch unit formatting
Suppress leading 0 feet notation when feet = 0 in architectural (LUNITS 4)
and engineering (LUNITS 3) formats. Values less than one foot should display
as inches only (e.g. 9 1/4 inches instead of 0 feet 9 1/4 inches).

- For Architectural: 9.25 inches now displays as 9 1/4 inch mark instead of 0 feet 9 1/4 inch mark
- For Engineering: 11.94 now displays as 11.9 inch mark instead of 0 feet 11.9 inch mark
- Proper feet notation is preserved for values >= 1 foot
- Updated tests to reflect correct expected values

Fixes issue 1066

Co-authored-by: Copilot <[email protected]>
2026-09-08 10:18:53 +02:00
JonathanandCopilot 725a7b3e7e Align ByLayer property dropdowns consistently in Properties panel
Use SELECTOR_PAD_V (calculated from ROW_H and FONT_SZ) instead of
hardcoded [3, 6] padding for color selector buttons. This matches the
padding used by combo_box widgets for Lineweight and Linetype,
ensuring all three ByLayer dropdowns align vertically and have
consistent height.

Fixes #1047

Co-authored-by: Copilot <[email protected]>
2026-09-08 09:26:28 +02:00
JonathanandCopilot 92ac3f60e5 Fix crash when overwriting an existing PDF file
Use atomic file operations (write to temp file, then rename) instead of
direct File::create() to avoid crashes when the target PDF is locked by
another process (e.g., open in PDF reader). The new write_pdf_atomically()
function ensures the file is either fully written or left unchanged, with
a clear error message if the file is in use.

Fixes #1062

Co-authored-by: Copilot <[email protected]>
2026-09-08 09:04:52 +02:00
JonathanandCopilot 7a706e24ac Improve Dutch CAD terminology translations
- Multiverwijslijn → Multiverwijs Lijn (proper spacing)
- Multiline → Multilijn Tekst (better clarity)
- Unie → Samenvoegen (more accurate for boolean union)
- Aftrekken → Verschil (better term for boolean subtract)

These terms align better with Dutch CAD industry standards.

Co-authored-by: Copilot <[email protected]>
2026-09-08 08:52:18 +02:00
JonathanandCopilot 8497abecfd Fix ribbon command labels wrapping in the middle of words
Replace Wrapping::WordOrGlyph with Wrapping::Word to prevent labels
like 'Dimensions' from breaking as 'Dimensio' + 'ns'. Word-only wrapping
ensures labels only wrap at word boundaries.

Fixes #1046

Co-authored-by: Copilot <[email protected]>
2026-09-08 08:34:58 +02:00
Jonathan fef4481823 Updated icons pack 2026-07-28 11:54:57 +02:00
UserDevtec 7603d52fe3 Create icons.md 2026-07-27 23:33:10 +02:00
UserDevtec 26c2a1c9a3 Update icon pack 2026-07-27 23:31:50 +02:00