Options::undo = UndoButtons::Toggle puts one button in the footer in place of
Undo and Redo: it undoes the last change and turns into Redo, which applies it
again and turns back into Undo. Starting to record a shortcut disables it until
the next change, so it never reaches past the change before. The undo and redo
keys follow the button. The default (History) is unchanged.
ShortcutsDialog::set_json_field refused `replace` in a read-only dialog,
while a prompt, review or recording was open, and on an app tab, but it
accepted `pressed`, `assign` and `remove` in those states.
DialogState::can_edit holds the condition `replace` already used, and
all four editing fields now return the inactive refusal when it is
false.
Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
import goes, since the dock no longer keeps pass frames in memory.
Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on
each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass
cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the
menu bar's is_open and is_focused answer without a copy.
runtime::motion::now returns a web_time Instant, which is not std's on wasm,
so the menu macOS and WASM lint job failed to compile mac.rs. The AppKit
rebuild retry is a native timer outside any pass, so it keeps Instant::now
with a contract/motion marker and its entry in
design/exceptions/craft-menu/crate.toml.
- craft-draw: the Bezier overlay's read counter is a test-only module the lint
recognises (cfg(test) and the screen-testing feature as two attributes). It
stays per thread, so parallel trials do not add to each other's counts.
- craft-menu: the macOS menu retry reads the runtime's motion clock and asks
for its repaint through runtime::frame.
- craft-ui-panels: Prompt's layer_role setter is derived (#[prop]).
main moved the AppKit code into craft-window's native_menu. The minimal app
menu now takes its titles there as an AppMenu (install_app_menu_with), and
craft-menu's mac::app_menu builds them from LayoutOptions. craft-window
escapes every title it hands muda, the platform items' titles included.
craft-design-lint's workspace test fails on next with four findings in code
that landed before the lint became a hard test:
- draw (#3534): the Bezier overlay's read counter is a thread_local in a module
gated cfg(all(test, feature)); the global-state rule skips cfg(test) modules
only, so the gate is split into #[cfg(test)] and #[cfg(feature)], which
compiles the same code.
- menu (#3541): the macOS menu rebuild retry reads the runtime's clock
(runtime::motion::now) and asks for its frame through
runtime::frame::request_repaint_after instead of Instant::now and
Context::request_repaint_after.
- ui-panels (#3431): Prompt::layer_role was a hand-written setter; the field is
now #[prop(vis = "pub(super)")].
A translucent accent.soft over an accent.solid fill read as a solid block, and text.normal on accent.soft has no
guaranteed contrast. The fill is now the whole tile and the edge a thin stroke inside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tab strips in the Keyboard Shortcuts dialog used their id salts as
names, so a screen reader announced the area tabs as "shortcuts.area"
and the app's page tabs as "shortcuts.tab". The area tabs are now named
with the Show select's translated label, and the page tabs with the
dialog's title. The id salts are unchanged.
The pane worked its height out of `cx.room` by hand, which falls back to the least when the caps are measured in a column that offers no room, and which took the room even at `Proposal::Min`. `picture_size` keeps the least when there is no room or the measure is a least one, and tells the column to sweep again when the pane shows wider than it measured.
The caps keep their proportions, 18.5 units across the pane and 6.25 down it: the pane is as tall
as the width it is given makes the keys, and a pane narrower than the keys ask for keeps the least
height, so a key is never smaller than a control. An app no longer sets a least height for the
keys, and the pane's least height field goes with it.
Trial removed with the option: the least height pane_like_an_app set. Trial added:
a_wider_pane_is_taller_and_its_keys_stand_above_a_control (a dialog of 950 points draws a taller
key than one of 700, above the height of the footer's OK button).
When AppKit could not rebuild the menu bar, the old menus stayed up but
nothing tried the rebuild again: NativeBar::apply returned false for a
failed rebuild and for an update in place alike, and the driver had
already recorded the new menus as synced.
- craft-window: NativeBar::failed reports a rebuild that failed.
- craft-menu: RebuildRetry tries menus whose build failed once more
REBUILD_RETRY (one second) after the failure; when that fails too,
they are not built again until they change.
- The macOS backend keeps the menus pending after a failed rebuild and
asks egui for a repaint when the retry is due, asking again on each
frame before then.
Carries the fix from storytold/vectorcraft#9056.
Conflicts resolved in next's shape:
- ui-widgets tile_grid/mod.rs: next added CardText::Page with a strong name;
Preset keeps this branch's strong name beside it.
- ui-widgets tile_grid/tile.rs: the pick ring outline stays, skipped on next's
page cards (they draw their own accent edge); page cards stay flat.
- ui-widgets tests tile_grid/tile.rs: both trials kept, this branch's
a_preset_cards_name_is_strong and next's page card wrapping trial.
- docs/contract-api.md: next's wording for focus::host_canvas, and the
focus::is_focused line this branch's regeneration listed (the function is
public in the source).
Several themes pin accent.border translucent so it reads on a control's own fill (Adwaita, Breeze, Soft,
Studio, Solarized Dark). The current tile has no fill now, so that outline sat at 1.6 to 2.6:1 on the ribbon,
under the 3:1 a state mark needs. accent.solid is what the other selection outlines take (table cells,
graph nodes, timeline clips). Also drops the tile style's stale note about a selection fill.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Styles gallery's up, down and more buttons are icon buttons, and in a ribbon an icon-only button's glyph takes
the ribbon's small icon side (17), which made the arrows far larger than the old ribbon's. A new
GlyphRole::Compact shows the glyph at size.icon.glyph_sm whatever the control size and skips that ribbon side;
the gallery sets it on its three buttons, and on the one it measures. Other icon buttons are unchanged.
Reference: storytold/wordcraft#7679.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The current tile of a gallery was a state.selected fill inside a line.control_edge edge, which on the Styles
gallery read as a grey tile. It is now a thin outline in accent.border, the colour a selected icon button's
outline takes, and the tile keeps its own background. The outline is still a shape, so the current tile
is not marked by colour alone. Reference: storytold/wordcraft#7678.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An editable Keyboard Shortcuts dialog sizes from its content, so with a
large catalog the table takes the whole window and the dialog covers
it. The app had no way to choose another size.
- `Options::size`: the dialog opens at this size, in points, until the
user resizes it. A size that is not finite is ignored.
- Without it, an editable dialog opens as before and a read-only one
keeps its moderate fixed size.
Show always listed All Commands, each menu, Tools, each panel and Other
before the app's own `Options::areas`. An app that gives Tools and Menu
Commands as its only entries got them at the end of a long strip, with
a second Tools entry, and the dialog opened on All Commands.
- `Options::own_areas`: Show lists only the app's own entries (and
Fixed Keys), and the dialog opens on the first of them, or on the one
that lists the command selected before it opened.
- Go to Conflict and Accept and Go to Conflict show the holder under the
first entry that lists it when Show has no All Commands.
- The option is off by default, and a dialog without it is unchanged.