Commit Graph
8470 Commits
Author SHA1 Message Date
bflatastic 68cde01dc5 ui-widgets choice: ChoiceLook, a root style value; under ChoiceLook::Strong a check box, radio button or switch track that is on fills with accent.strong (pressed accent.strong_pressed, disabled unchanged) under a text.on_strong mark; ChoiceLook::Accent, the default, keeps accent.solid with text.on_accent. Check box and radio stories under Strong 2026-11-24 19:38:11 +07:00
bflatastic 09650e1d3d ui-contract style: TrackFill, a root style value; under TrackFill::Accent a slider's and a range slider's track fill the value's part in accent.solid (disabled text.disabled) on a line.outline groove; TrackFill::Muted, the default, keeps text.muted on line.control_edge. Slider story under Accent 2026-11-24 19:38:11 +07:00
bflatastic 66ab239f53 ui-contract, text: TextRun::data_color fills the run's colour from data, painted as given, as IconSpec::data_color does for an icon: text over document content in the content's own colour 2026-11-24 18:33:33 +07:00
bflatastic 327fcaa906 canvas, pasteboard: Pasteboard::artboard_edge chooses ArtboardEdge::Plain, which edges the active artboard in black at stroke.thin and the others in grey 120 at a hairline, data colours that read against the paper; Accent stays the default 2026-11-24 18:31:59 +07:00
bflatastic dc8b91f5f1 list, menu: CommandHighlight (an env style value, Accent by default) chooses how a menu's active row, a popup list's command row, the palette's active row and an open menu bar title show it; under Hover they paint state.hover with their own ink, as a row with an open submenu 2026-11-24 18:29:26 +07:00
bflatastic 6af5a5eaf2 theme: VectorCraft Modern and Modern Medium pin state.text_selection to the accent at 55% alpha (dark #f06a528c, light #d9472f8c), as production's field selection 2026-11-24 18:10:05 +07:00
bflatastic 06e94d7321 tabs, dock: PanelTabLook::Pill shows a panel strip's shown tab on a filled rounded pill (surface.control, shape.radius.control, size.control.sm high in the middle of the strip; a hovered tab shows it too); TabStrip::panel_look and DockConfig::tab_look choose it, Plain by default 2026-11-24 17:59:45 +07:00
bflatastic 2eb195b889 ui-panels, dock area: DockConfig::column_cards (was rail_cards) shows every docked column as a card, expanded or collapsed to icons: surface.panel with shape.radius.surface corners on the dock's background, inset by space.gap.stack on top, bottom and at the window edge, and space.gap.tight between neighbouring cards; each column wider by its inset so its content keeps its width; group dividers stay inside the card; container surfaces keep to their layer's frame 2026-11-24 17:45:08 +07:00
bflatastic a4b6d3b6ca ui-contract: MOVE_BAND is re-exported in every build, not only the suite's, since BodyCx::moving reads it; an app building without the suite feature compiles again 2026-11-24 16:37:57 +07:00
bflatastic 6e727dc6c6 Merge remote-tracking branch 'origin/next' into fix/vc-chrome-bars
# Conflicts:
#	crates/ui-widgets/src/buttons/mod.rs
2026-11-24 15:31:24 +07:00
bflatastic faf5a954e4 ui-panels, dock area: DockConfig::rail_cards shows a docked tool rail's column as a card: inset by space.gap.stack on its outer, top and bottom sides over the dock's background, surface.panel with shape.radius.surface corners and no frame, the column wider by the inset so its steps stay 2026-11-24 15:24:08 +07:00
bflatastic 02dc636a6c ui-contract, title bar: one way for an end group whose ranked members leave first: TitleBar::show_fitted turns on its end region's fit, as Bar::trailing does, and layout::end_group goes; the fit's env fact carries the body's shortfall, which the region's first row gives up off its ideal width 2026-11-24 14:52:29 +07:00
bflatastic 0e41edc671 Merge remote-tracking branch 'origin/next' into fix/vc-chips-headers 2026-11-24 14:31:44 +07:00
bflatastic 3238a3eca8 Merge remote-tracking branch 'origin/next' into fix/vc-buttons-fields 2026-11-24 13:51:33 +07:00
bflatastic 41a0679299 ui-widgets tests: the selectable-text trial names its canvas with Id::unique, not the deprecated Id::new 2026-11-24 13:50:32 +07:00
bflatastic 02d26c8cc0 bars: a bar's trailing group joins the body's fit; its ranked members leave, lowest rank first, before a body member narrows or leaves 2026-11-24 13:50:25 +07:00
bflatastic bbef5516c0 ui-widgets: the selectable text trial names its canvas with Id::unique, as egui deprecates Id::new 2026-11-24 13:48:36 +07:00
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