Commit Graph
8520 Commits
Author SHA1 Message Date
bflatastic 27493aca39 Merge remote-tracking branch 'origin/next' into fix/vc-keys-press 2026-11-24 13:38:53 +07:00
bflatastic cb367bccf3 menu bar: MenuTitlePad, the padding role of the titles an app sets at its root; Control sets them closer, as an app bar whose menus share the line with many controls 2026-11-24 13:38:50 +07:00
bflatastic 161c99c637 ui-contract, title bar: layout::end_group places a row's end group at its end edge, its members ranked units of the row's fit; TitleBar::show_fitted shows the trailing content as the body's end group, so its ranked members leave before the menus fold 2026-11-24 13:37:29 +07:00
bflatastic 49d439d63d ui-widgets: a tile grid without card_columns asks for one card in a measuring run again (ebf925452, lost in the merge b138b533f), so a dialog pane sized from it holds its rows and the row under them: presses on the tiles, the button and the field beside it land on them 2026-11-24 13:33:04 +07:00
bflatastic d3b03c1b44 ui-contract: a command a key, a native menu pick or the palette runs no longer closes a layer whose Dismiss::commands is off; a dock panel's flyout turns it off, so the command no longer closes and reopens it and a focused list in it keeps the focus 2026-11-24 13:30:24 +07:00
bflatastic 065efff0c9 Outline buttons: a line.outline token for the neutral outline's edge
Outline and soft neutral looks take their edge from line.outline, which follows text.muted unless pinned, so only
the VectorCraft Modern themes, which pin production's dimmer button edge, change.
2026-11-24 13:27:48 +07:00
bflatastic 0aeb4251cc Filled push buttons follow PushButtonLook only when they ask for no variant
A component's default variant may now come from its scope (Component::default_variant, read from the env before
the style's first). A push or split button takes the filled variant there under PushButtonLook::Filled, outside a
ribbon, so a button that asks for Variant::SECONDARY, as VectorCraft's task bar actions do, keeps the outline.
2026-11-24 13:27:47 +07:00
bflatastic 17d8a34242 ui-widgets: the inline number trials share one field rig 2026-11-24 13:18:40 +07:00
bflatastic d0e1ca86fa docking: DockConfig::panel_menu_icon picks the panel menu button's icon, more by default 2026-11-24 13:14:08 +07:00
bflatastic 6080b3950c sections: HeaderStrength::Quiet, the caption role in the muted ink with no rule, for an inspector's kind line 2026-11-24 13:14:05 +07:00
bflatastic b808cac9fc labels: GlyphColon::Form gives a glyph caption (GlyphLabel::caption) a form's colon; draw's X/Y/W/H are captions 2026-11-24 13:10:03 +07:00
bflatastic 1a17a4963c ui-canvas: TaskBar::hang_gap(TaskBarHang::ClearOfHandles) hangs the bar the handle ring and a section gap from its anchor 2026-11-24 13:06:08 +07:00
bflatastic 0d8d3f9c9a ui-canvas: TaskBar::member_gap(Gap) spaces the bar's members, through a new Bar::gap 2026-11-24 12:59:49 +07:00
bflatastic 8982191687 title bar: document the surface role it takes and show it on the background surface in a story 2026-11-24 12:58:31 +07:00
bflatastic 45a8457c7b ui-widgets: DocumentTab::name_len, the label's name part, which a modified tab's mark follows: "Untitled-1* @ 93.5 % (RGB/Preview)" 2026-11-24 12:58:00 +07:00
bflatastic bb06692b13 ui-widgets, ui-panels: ActiveLook::Pressed shows an icon button that is on in the pressed fill with no accent edge; ToolRail::active_look gives it to the rail's buttons 2026-11-24 12:57:45 +07:00
bflatastic 95c1456826 ui-panels: a dense tool rail step: RailDensity::Dense packs the rail's buttons a control high, and DockGrid::density sizes the rail's column with them 2026-11-24 12:57:26 +07:00
bflatastic 4ae91846fa title bar: take show_fitted out again; with caption buttons its trailing content stops short of the end and a ranked member narrows instead of leaving 2026-11-24 12:57:16 +07:00
bflatastic ddd2e3c4e6 Filled push buttons: an Emphasis::Filled look on a new surface.control token, and PushButtonLook for an app's default
A filled neutral tile with no edge at rest takes the hover fill and the control edge under the pointer and the
pressed fill with the accent edge under the press; disabled, it dims as a solid one does. surface.control follows
state.hover unless pinned, so only the VectorCraft Modern themes, which pin production's button fills, change.
An app sets PushButtonLook::Filled at its root to make it the default of its push and split buttons; a ribbon
keeps its flat look and toggles keep the outline.
2026-11-24 12:57:13 +07:00
bflatastic 0a31be98c3 ui-widgets: NumberPrecision::Measured shows a length to a thousandth of a point and a ten-thousandth of the larger units (357.114 pt) 2026-11-24 12:56:16 +07:00
bflatastic 361012ff9f ui-canvas: TaskBar::grip(TaskBarGrip::Bar), one rounded bar lit under the pointer and while the bar moves (BodyCx::moving) 2026-11-24 12:56:14 +07:00
bflatastic 269ce9d696 ui-widgets: NumberPrecision::Measured lets an app show whole percentages (60%) where the standard precision writes one decimal 2026-11-24 12:41:25 +07:00
bflatastic 827141f831 color-ui: PaintChip::chip_size(PaintChipSize): Regular, Compact (a small well in a control-high slot) and Swatch (a third of a rail button, no popover) 2026-11-24 12:36:53 +07:00
bflatastic b21bc0e359 select: SelectLook::Quiet, a quiet box as wide as the entry it shows; WorkspaceSwitcher::look passes it on 2026-11-24 12:35:21 +07:00
bflatastic fe138f934f docking: DockConfig::panel_menu_always gives every group its panel menu button 2026-11-24 12:35:00 +07:00
bflatastic 8da5ec92a5 ui-widgets: NumberLook::Inline sets a number field's value and unit as one run at its start (720 pt, 0°, 100%) 2026-11-24 12:33:34 +07:00
bflatastic 988a5c82aa color-ui: PaintChip::popup_mark(PopupMark::Menu) draws the dropdown arrow after the well, inside the chip 2026-11-24 12:28:25 +07:00
bflatastic 9450c7fa7a title bar: show_fitted puts the trailing content after the body on its line, so ranked members leave before the leading content narrows 2026-11-24 12:25:28 +07:00
bflatastic aa973d98fa ui-contract: a press the focused component holds leaves egui's input again unless the app's own widget reads it; the merge b138b533f passed whether anything had focus for whether the focus was the app's widget 2026-11-24 12:23:14 +07:00
bflatastic 51eaf9fd25 ui-contract: a page key the keymap binds to a command that runs now runs it ahead of the document canvas's page scroll, focused or not; an unbound one still pages 2026-11-24 12:19:01 +07:00
bflatastic 47691f10c2 Inspector: title_strength gives the title another weight than a section heading's 2026-11-24 12:18:43 +07:00
bflatastic c71c3025ce sections: HeaderStrength::Subheading, label text in the normal ink with no rule 2026-11-24 12:18:40 +07:00
bflatastic 48d19d2810 ui-contract: a command fired from a button runs as a command; only a menu's or the palette's fire stands for the key a component claims 2026-11-24 12:08:24 +07:00
aiongg 45c8a4a3f7 draw: Shift while dragging a Bezier handle turns it to the nearest 45 degrees about its anchor 2026-11-24 04:50:46 +00:00
skylartaylor 1d281f38c1 atomic: a write-only file's unreadable attributes are dropped, as documented and tested (review)
On macOS a mode-0200 file's owner can list none of its attribute names either, so they are dropped, as
before attributes were kept. An ACL that denies the data but lets the names be listed still refuses the
save. Both are now tested on macOS. Also: the pages key doc gives the macOS exception for Cmd+Home/End.
2026-11-24 04:48:57 +00:00
skylartaylor f29372d280 atomic: an unreadable file saves only when it has no attributes to lose (review)
When the old file can't be opened for reading, its attribute names are listed by path: none (or only
com.apple.provenance) lets the save go on; any other refuses it, since they can't be copied without the file.
2026-11-24 04:48:57 +00:00
skylartaylor 52503acd71 Fix the macOS test failures next picked up from the PdfCraft framework sync (#3232)
- atomic: a file the user may write but not read (mode 0200) saves again on macOS; its extended
  attributes can't be read, so there are none to keep.
- menu, ui-shell, pages, ui-contract, ui-canvas tests: follow the macOS conventions the code already has. The
  in-window bar test pins its target as the other bar tests do; macOS has no Menu key and no Cmd+Home/End move;
  its platform copy key is Option; a press with Control there is a secondary click, so Control comes after the press.
2026-11-24 04:48:57 +00:00
bflatastic f2ee94bfc4 Merge remote-tracking branch 'origin/next' into fix/vc-theme-and-focus
# Conflicts:
#	crates/theme/tests/dumps/tokens/vectorcraft-modern-medium-dark-high-comfortable.txt
#	crates/theme/tests/dumps/tokens/vectorcraft-modern-medium-dark-high-compact.txt
2026-11-24 11:33:46 +07:00
bflatastic 0bf6239b0e Merge branch 'fix/grid-stacked-label-rows' into fix/vc-theme-and-focus 2026-11-24 11:33:23 +07:00
aiongg 0bf0a39d79 text: the Character panel's fields fill their columns
Kerning, tracking and the plain number fields fill their grid cell, as the
length fields do, and kerning shows its mark inside its box. Family, style,
font height, anti-aliasing and language span the panel. The row helpers take
the select's sizing from the caller, so the type bar keeps its widths; Format
Text and Style Options fill their cells as well.
2026-11-24 04:28:26 +00:00
aiongg 48936610c5 arrange: Tile All tiles docked cells in the document area
Tile All Vertically and Horizontally dock every document first and give each its own cell, as Tile does, instead of floating every document into its own window.
2026-11-24 04:07:24 +00:00
aiongg 8b4e49d62f drag: the window a drag moves paints the drop mark over itself
A native floating window moved by its title row lies over the mark the target under it shows. Its own ghost layer paints the mark too, mapped to the same desktop place through the windows' inner rects, the mapping pointer_in uses, so the mark reads over the faded window.
2026-11-24 04:07:24 +00:00
aiongg cfca45a97b docking: a tab drag names its panel inside the drop region, and a tab join marks the group as shown
A collection picks its row drag preview with one named option, RowPreview (Badge, Named, None), in place of the drag_badge flag. A dock tab strip takes Named, so a tab drag shows the panel's name inside the region a drop takes, as group, column and icon drags do, with no badge by the pointer.

A tab join marks the group under the pointer at its current size, with the tab line, as production did; other drops keep the rect the panels take once dropped.
2026-11-24 04:07:24 +00:00
aiongg c7dbf52f59 ui-contract: a tooltip keeps its text width in an inspector cell, a press hides it until the pointer leaves, and a sampled press does not nudge its modal
- Scoped::start_layer clears inside_label, cell_fills and least: a layer is outside its opener's flow, so the tooltip of a control beside an inspector label no longer fills the layer's cap of the window (photocraft#16593).
- A press on a tooltip's subject keeps the tooltip hidden until neither the pointer nor the keyboard is on it, so a popover the press opens is not covered. Tooltips shown at the pointer keep hiding only while pressed.
- A press the canvas a modal keeps open takes (a colour sampled under the Color Picker) is not a press outside that modal, so it neither nudges nor closes it.
2026-11-24 04:04:36 +00:00
aionggandskylartaylor eaeb0fa028 platform: owner_only's docs name its Windows-only functions as code, not links
From storytold/craft-libs#3236, so this PR's Workspace docs check can pass.

Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-24 04:02:17 +00:00
aiongg 87ed3c0be0 ui-contract: one modal stack across viewports, ordered by the frame each top modal opened in
A modal viewport blocks only the viewports whose top modal opened in an earlier frame, and those with none.
Modals that open in the same frame form one level and block none of each other, so the screen picker's
capture windows, opened over a modal Color Picker, take the click, right-click and Escape that end the
pick, while the Color Picker's window stays blocked until they close. The input hook, key ownership, the
blocked cursor, the close refusal and the window raises all read that one fact.
2026-11-24 04:00:07 +00:00
aiongg 9750fe6d77 i18n: the region test module builds only where its one test runs 2026-11-24 03:41:37 +00:00
aiongg c13c6eeed5 docs: regenerate the components index 2026-11-24 03:28:05 +00:00
aiongg 8ef406cd5d ui-widgets: a tile grid that takes its width from its content asks for at least one card again
The merge of next (b138b533fe) brought back the early zero width that ebf9254522 removed, so a measured stack lost the
grid's rows and what follows them. The selectable-text trial names its canvas with Id::unique.
2026-11-24 03:28:05 +00:00
aiongg 3b200f43d6 text: a one-line field pastes each line ending as a space again; the editor's step loop is its own function
The merge of next (b138b533fe) dropped one_line from the paste when it took the step loop. Moving the loop out of
TextEditor::update keeps the update under clippy's cognitive complexity limit.
2026-11-24 03:28:05 +00:00