mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-08 13:01:52 +00:00
48bab1a65a
* Design tabs: double-click a tab to rename the design A double-click on the selected design's tab opens a name field in the tab with the name selected, so typing replaces it. Enter or a click anywhere else keeps the new name; Escape keeps the old one. The tab grows with the name while it is typed (up to the tab's usual 200 pt). The rename goes through component.rename with component 0, so it is undoable, marks the design unsaved and is what Save As offers next. A name left as it was or left blank changes nothing, and names are cut to the 128 characters the command takes. On desktop the bar is the window's title bar, and a double-click on a tab used to maximize the window. Double-clicking the bar's empty space still does; the tabs now rename. The preference tab_double_click_renames (Preferences > Interface, "Double-click a design tab to rename it") brings the old behaviour back. Changes a default: yes - a double-click on a design tab renames the design, old behaviour (maximize the window) kept behind preference tab_double_click_renames. Strings in assets/locales/pending/design-tab-rename.json (en, ar, de, he, ja, ko, vi, zh). Docs: the UI tour and the preference list in control-protocol.md (handle tab:rename). Tests in documents.rs: Enter renames and undo restores; a click elsewhere keeps the name and the tab grows while typing; Escape, a blank name and the same name change nothing; an over-long name is cut to fit; with the preference off a double-click does not rename. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix the tab rename for the current egui and ignore the rename result Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: bherbruck <brennen.herbruck@gmail.com>