Commit Graph
62 Commits
Author SHA1 Message Date
bflatastic c66ae09aac theme, ui-contract: RootEnv::accent derives the theme's accent colours and the text on them from the user's seed 2026-11-22 07:03:55 +07:00
bflatastic 03ef0d0817 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/automation/Cargo.toml
#	crates/automation/src/client.rs
#	crates/automation/src/control.rs
#	crates/automation/src/screenshot.rs
#	crates/automation/src/synthetic.rs
#	crates/automation/tests/it/main.rs
#	crates/automation/tests/it/synthetic.rs
#	crates/color-ui/src/palette.rs
#	crates/color-ui/src/ui/area.rs
#	crates/color-ui/src/ui/disc/stories.rs
#	crates/color-ui/src/ui/mod.rs
#	crates/color-ui/src/ui/paint_chip.rs
#	crates/color-ui/src/ui/pair/stories.rs
#	crates/color-ui/src/ui/palette/stories.rs
#	crates/color-ui/src/ui/panel.rs
#	crates/color-ui/src/ui/picker/stories.rs
#	crates/color-ui/src/ui/picker_dialog.rs
#	crates/color-ui/src/ui/swatches/library.rs
#	crates/color-ui/src/ui/swatches/panel.rs
#	crates/color-ui/src/ui/swatches/stories.rs
#	crates/color-ui/src/ui/wheel/stories.rs
#	crates/color-ui/tests/it/main.rs
#	crates/color-ui/tests/it/panels.rs
#	crates/color-ui/tests/it/picker.rs
#	crates/dialogs/src/lib.rs
#	crates/dialogs/src/native.rs
#	crates/dialogs/src/portal.rs
#	crates/dialogs/src/service.rs
#	crates/draw/src/ui/brush_presets/panel.rs
#	crates/draw/src/ui/brush_presets/picker.rs
#	crates/draw/src/ui/brush_presets/stories.rs
#	crates/draw/src/ui/gradient/palette/mod.rs
#	crates/draw/src/ui/pattern/editor.rs
#	crates/draw/src/ui/pen/stories.rs
#	crates/draw/src/ui/transform/mod.rs
#	crates/draw/src/ui/transform/transform_box.rs
#	crates/draw/src/ui/transform/transform_box/stories.rs
#	crates/draw/src/ui/transform/transform_fields.rs
#	crates/draw/tests/it/brush_presets.rs
#	crates/draw/tests/it/main.rs
#	crates/draw/tests/it/transform_box.rs
#	crates/font-manager/src/axes.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/main.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/host/src/files.rs
#	crates/i18n/src/lib.rs
#	crates/imaging/src/ui/layer_style/styles.rs
#	crates/keymap/src/keymap.rs
#	crates/keymap/src/matcher.rs
#	crates/layers/src/ui/filter/mod.rs
#	crates/layers/src/ui/filter/stories.rs
#	crates/layers/src/ui/mock.rs
#	crates/layers/src/ui/panel/mod.rs
#	crates/layers/src/ui/panel/stories.rs
#	crates/layers/src/ui/tree.rs
#	crates/layers/tests/it/panel_drag_menu.rs
#	crates/layers/tests/it/panel_filter.rs
#	crates/menu/src/bar.rs
#	crates/menu/src/driver.rs
#	crates/menu/src/model.rs
#	crates/menu/src/shortcuts/pages.rs
#	crates/menu/src/shortcuts/state.rs
#	crates/menu/src/shortcuts/stories.rs
#	crates/menu/src/shortcuts/view.rs
#	crates/menu/tests/it/main.rs
#	crates/menu/tests/it/native.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/pages/src/ui/mod.rs
#	crates/pages/src/ui/view.rs
#	crates/platform/README.md
#	crates/platform/src/clipboard_tests.rs
#	crates/platform/src/open.rs
#	crates/print/src/ui/stories.rs
#	crates/text/src/ui/character.rs
#	crates/text/src/ui/character/stories.rs
#	crates/text/src/ui/find.rs
#	crates/text/src/ui/find/dialog.rs
#	crates/text/src/ui/find/stories.rs
#	crates/text/src/ui/ruler.rs
#	crates/text/src/ui/ruler/paint.rs
#	crates/text/src/ui/ruler/run.rs
#	crates/text/tests/it/main.rs
#	crates/text/tests/it/ruler.rs
#	crates/ui-canvas/src/canvas/mod.rs
#	crates/ui-canvas/src/canvas/tool.rs
#	crates/ui-canvas/src/canvas/tool_host.rs
#	crates/ui-canvas/src/canvas_controls/grid/mod.rs
#	crates/ui-canvas/src/canvas_controls/grid/stories.rs
#	crates/ui-canvas/src/canvas_controls/guides/stories.rs
#	crates/ui-canvas/src/canvas_controls/task_bar.rs
#	crates/ui-canvas/src/canvas_controls/task_bar/stories.rs
#	crates/ui-canvas/tests/it/canvas/navigate.rs
#	crates/ui-canvas/tests/it/canvas/rulers.rs
#	crates/ui-canvas/tests/it/canvas/tool.rs
#	crates/ui-canvas/tests/it/canvas_controls/grid.rs
#	crates/ui-contract/src/contract/body/presses.rs
#	crates/ui-contract/src/contract/items/drag.rs
#	crates/ui-contract/src/contract/items/hooks.rs
#	crates/ui-contract/src/contract/items/lead.rs
#	crates/ui-contract/src/contract/overlay/placement.rs
#	crates/ui-contract/src/contract/overlay/props.rs
#	crates/ui-contract/src/contract/overlay/ui.rs
#	crates/ui-contract/src/contract/steps/label.rs
#	crates/ui-contract/src/contract/text.rs
#	crates/ui-contract/src/contract/tooltip.rs
#	crates/ui-contract/src/layout/body.rs
#	crates/ui-contract/src/primitives/draw.rs
#	crates/ui-contract/src/primitives/icon.rs
#	crates/ui-contract/src/primitives/mod.rs
#	crates/ui-contract/src/primitives/textures/thumbnails.rs
#	crates/ui-contract/src/runtime/commands/board.rs
#	crates/ui-contract/src/runtime/commands/mod.rs
#	crates/ui-contract/src/runtime/drag.rs
#	crates/ui-contract/src/runtime/egui/input.rs
#	crates/ui-contract/src/runtime/egui/plugin.rs
#	crates/ui-contract/src/runtime/frame.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/input.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-contract/src/runtime/pointer.rs
#	crates/ui-contract/src/runtime/wheel.rs
#	crates/ui-contract/src/runtime/windows.rs
#	crates/ui-contract/src/runtime/windows/viewport.rs
#	crates/ui-contract/src/style/cx.rs
#	crates/ui-contract/src/style/span.rs
#	crates/ui-contract/src/testing/access.rs
#	crates/ui-contract/src/testing/icon_trials.rs
#	crates/ui-contract/tests/it/body/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-contract/tests/it/runtime/wheel.rs
#	crates/ui-contract/tests/it/runtime/windows.rs
#	crates/ui-contract/tests/it/text/editor.rs
#	crates/ui-gallery/src/mock/panels.rs
#	crates/ui-panels/src/dialog/mod.rs
#	crates/ui-panels/src/docking/group.rs
#	crates/ui-panels/src/rails/drawer/stories.rs
#	crates/ui-panels/src/rails/tool.rs
#	crates/ui-panels/src/rails/tool/stories.rs
#	crates/ui-panels/src/rails/tool/trials.rs
#	crates/ui-panels/src/sections/footer.rs
#	crates/ui-panels/tests/it/dialogs.rs
#	crates/ui-patterns/src/patterns/dock/hide.rs
#	crates/ui-patterns/src/patterns/dock/panes.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs
#	crates/ui-patterns/src/patterns/form_dialogs/list_manager/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/mod.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document/cards.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document/details.rs
#	crates/ui-patterns/src/patterns/form_dialogs/param.rs
#	crates/ui-patterns/src/patterns/form_dialogs/pdf_export.rs
#	crates/ui-patterns/src/patterns/form_dialogs/pdf_export/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/report.rs
#	crates/ui-patterns/src/patterns/form_dialogs/report/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/hosted.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/model.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/options.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/stories.rs
#	crates/ui-patterns/src/patterns/panels/palette.rs
#	crates/ui-patterns/src/patterns/panels/palette/stories.rs
#	crates/ui-patterns/src/patterns/preferences/document/model.rs
#	crates/ui-patterns/src/patterns/preferences/page.rs
#	crates/ui-patterns/src/patterns/preferences/window.rs
#	crates/ui-patterns/src/patterns/preferences/window/stories.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-patterns/src/patterns/presets/browser/stories.rs
#	crates/ui-patterns/src/patterns/presets/manager.rs
#	crates/ui-patterns/src/patterns/presets/mod.rs
#	crates/ui-patterns/src/patterns/presets/named.rs
#	crates/ui-patterns/src/patterns/presets/picker.rs
#	crates/ui-patterns/tests/it/docking/drop_session.rs
#	crates/ui-patterns/tests/it/docking/native.rs
#	crates/ui-patterns/tests/it/form_dialogs/hosted.rs
#	crates/ui-patterns/tests/it/form_dialogs/list_manager.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-patterns/tests/it/form_dialogs/params.rs
#	crates/ui-patterns/tests/it/form_dialogs/save_for_web.rs
#	crates/ui-patterns/tests/it/panels/palette.rs
#	crates/ui-patterns/tests/it/presets/browser.rs
#	crates/ui-shell/src/shell/app_shell.rs
#	crates/ui-shell/src/shell/app_shell/stories.rs
#	crates/ui-shell/src/shell/mod.rs
#	crates/ui-shell/src/shell/start.rs
#	crates/ui-shell/src/shell/start/stories.rs
#	crates/ui-shell/tests/it/commands/mod.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
#	crates/ui-shell/tests/it/shell/mod.rs
#	crates/ui-widgets/src/bars/bar.rs
#	crates/ui-widgets/src/buttons/button.rs
#	crates/ui-widgets/src/buttons/face.rs
#	crates/ui-widgets/src/buttons/mod.rs
#	crates/ui-widgets/src/buttons/stories.rs
#	crates/ui-widgets/src/choice/mod.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch/stories.rs
#	crates/ui-widgets/src/choice/swatch_table.rs
#	crates/ui-widgets/src/choice/swatch_table/stories.rs
#	crates/ui-widgets/src/display/text.rs
#	crates/ui-widgets/src/list/row.rs
#	crates/ui-widgets/src/list/row/paint.rs
#	crates/ui-widgets/src/list/stories.rs
#	crates/ui-widgets/src/list/view_stories.rs
#	crates/ui-widgets/src/menu/bar.rs
#	crates/ui-widgets/src/menu/item.rs
#	crates/ui-widgets/src/menu/search.rs
#	crates/ui-widgets/src/menu/stories.rs
#	crates/ui-widgets/src/pickers/mod.rs
#	crates/ui-widgets/src/pickers/reference_point.rs
#	crates/ui-widgets/src/pickers/reference_point/stories.rs
#	crates/ui-widgets/src/tabs/strip.rs
#	crates/ui-widgets/src/text/number.rs
#	crates/ui-widgets/src/text/number/stories.rs
#	crates/ui-widgets/src/tile_grid/grid.rs
#	crates/ui-widgets/tests/it/buttons.rs
#	crates/ui-widgets/tests/it/label/mod.rs
#	crates/ui-widgets/tests/it/label/tooltip.rs
#	crates/ui-widgets/tests/it/main.rs
#	crates/ui-widgets/tests/it/menu/bar.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
#	crates/ui-widgets/tests/it/menu/rows.rs
#	crates/ui-widgets/tests/it/menu/search.rs
#	crates/ui-widgets/tests/it/pickers/select_list.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-22 01:16:36 +07:00
aiongg 76580a0f6c Merge pull request #2758 from aiongg/rework-dialogs
Dialogs and fields: Image Size, Canvas Size, New Document, resample order
2026-11-21 00:52:20 -05:00
bflatastic 8bf05d8e46 Contract stubs: craft-i18n, craft-host, craft-theme, craft-keymap, craft-behavior, craft-platform, craft-window 2026-11-21 11:15:49 +07:00
aiongg eb28db6ba9 Merge pull request #2589 from aiongg/memo-stack
Memoized views: derived values; dock, Layers, menu and tool rail keys without model walks
2026-11-20 21:37:21 -05:00
aiongg feceac184b Export As and Save for Web list resample methods in the host's order; New Document: Background Contents before the advanced fields, save icon on the Name row, section captions as a type role 2026-11-21 02:10:34 +00:00
aiongg 3eebedfcff Component sets: the productivity set 2026-11-21 01:19:14 +00:00
aiongg 1fac93e295 Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/ui-contract/src/contract/memo.rs
2026-11-21 01:06:55 +00:00
aiongg d395d4f831 Component sets: the app's set of component looks as a root env value
craft-theme gets `ComponentSet { Creative, Office }`: the app states its
set in `AppDefaults::set`, the user's own choice for the app
(`AppChoice::set`) overrides it, and `Selection::set` carries the result.
The suite's choice never carries a set.

ui-contract makes the set a style-affecting env value: `RootEnv::set`
puts it in the root app values, a container overrides it for its subtree
through `Overrides::values`, and windows, layers and popups take the
scope's value. A component reads it in `style` with `StyleCx::set`.
`Fixture::set` sets it in tests.

The gallery gets a Set choice in the More popover and a Set axis in the
Variants view.
2026-11-20 18:17:09 +00:00
aiongg 47379d792c Chords, command refs and colours are plain data; the keymap generation is public 2026-11-20 18:16:52 +00:00
aiongg ef60cb99a5 craft-theme: LabelColor is plain data and memo props
craft-layers no longer marks its LabelColor fields: the type derives PlainData in craft-theme (a tier-0 crate, as craft-behavior
is), and the contract crate keys it as it keys the other theme types.
2026-11-20 18:16:52 +00:00
aiongg 1851f6984f Component constants: one-component values live in the component's file
A dimension that belongs to one component's own drawing is a documented
constant in that component's file; layout sizes stay semantic tokens, and
no size-preset token exists for one component (craft-framework.md 5.4).

- Spec: 5.4 rule 3 reworded; Appendix A, 4.6 (the component-token rung
  goes, no such tokens exist), 8.3, porting.md and the theme README agree.
- design-lint: literal-size/* treats a module- or impl-level const with a
  doc comment as a named value: a name that resolves to it is not flagged,
  and its initializer is its definition. Fn-local and undocumented consts
  and call-site literals stay flagged. Nine markers that only covered such
  consts are removed.
- Ruler ticks: size.ruler.tick.* leaves the size presets; kit.rs draws
  TICK_MID = 6 and TICK_MINOR = 3 points in every density, as the old
  library and the apps' rulers do. Comfortable ticks go back to 6 / 3
  (from 9 / 4.5); Compact is unchanged.
- size.scroll_fade becomes FADE_LENGTH in scroll_bar.rs, size.notice.width
  CARD_WIDTH in notice.rs, and size.story.* multiples of size.control.md
  in testing/stage.rs (15, 10 and 30 control heights: today's values in
  both densities). pointer_tip, checker, thumb.sample.*, the card gaps and
  icon.glyph_md stay tokens: each has more than one user.
2026-11-20 17:33:27 +00:00
Martin Ball 576dcb3817 fw-rest: resolve the framework sync conflicts (up/next into area/ribbon-fw)
- Dialogs: ButtonPlace { Foot, Side, Body } beside the port's refusal notice and
  ChildDialog; every side_buttons caller (find, hyperlink, paragraph, list manager,
  form dialogs) takes button_place, keeping the port's held answers, close buttons
  and name check.
- Colour picker: upstream's fixed Full arrangement, CompareSwatch and warning module;
  the port's shown_model and tabbed Colors dialog kept (its buttons stand in the side
  column, the Full layout's in the picker's slot); the Compact layout shows the
  compare block beside its area when the host gives a compare colour; focus_on_open
  goes as upstream.
- Task bar: the grip is the bar's first member on one floating surface, for the task
  kind only; the selection kind and the close reason stay.
- Keymap: lookup_where's accept filter runs through upstream's winners().
- craft-gpu: upstream's provider-neutral crate, with the port's eframe start-up
  choices behind a startup feature (facade gpu-startup); duplicate facade row removed.
- Facade features, ATTRIBUTION, BMP density probe, margin story fit, theme icon-pack
  and dialog first-field trials: both sides kept; the clipboard presence code stays
  replaced by the port's offer modules.
2026-11-19 20:57:28 +00:00
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
Martin Ball b3e1c96a5b look-rest-4: a theme's app layer can carry its own shape, which replaces the theme's for that app (parsed, checked, written, resolved); WordCraft's buttons are 4 pt rounded rectangles under ArtCraft, as WordCraft's were, not capsules; test 2026-11-19 14:47:44 +00:00
Martin Ball 91d09846e9 rf-platform: MemoryClipboard reads a held text/uri-list as files; size.pane.least's doc says it is a floor, not a pane body width 2026-11-19 13:22:00 +00:00
Martin Ball 8a045594dd ribbon-w3: net change of 6 commits
- ribbon-w3: written by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
2026-11-18 21:02:54 +00:00
Martin Ball 1bbb502203 chrome-w5: net change of 3 commits
- chrome-w5: written by an agent
- chrome-w5: review fixes (review-1)
- chrome-w5: review fixes (review-1b)
2026-11-18 16:01:11 +00:00
Martin Ball ec93a52260 Contract stubs: craft-ui-contract 2026-11-18 08:08:21 +00:00
aiongg f03c3f027b craft-theme edit: icon pack 2026-11-17 16:23:44 +00:00
aiongg 4fb896451d Merge branch 'tc/icons' into tc/edit 2026-11-17 16:23:35 +00:00
aiongg 08dad9c745 Themes name an icon pack; the resolved tokens carry the set every icon draws from
ThemeDef gains icon_pack (IconPackId), read and written as the top-level
icon_pack key of the v1 theme format. UiTokens::of_theme resolves a theme
and takes the icon set its pack names (craft.lucide, craft.phosphor,
craft.carbon, craft.tabler); a pack that is not installed draws the
default set. SvgIcon::of reads the set from the tokens, so IconSpec.set
is removed.
2026-11-17 16:22:58 +00:00
aiongg 031b031081 Edit tests: built-in ids carry the craft. prefix 2026-11-17 16:22:10 +00:00
aiongg 9b758653cf craft-theme: edit operations, diff and per-change revert 2026-11-17 16:14:59 +00:00
aiongg 8090388f3b Merge branch 'fw/det' into fw/mac1
# Conflicts:
#	crates/ui-widgets/src/bars/status_readout.rs
2026-11-16 16:48:00 +00:00
aiongg 45a14a4dad Rulers: minor tick token, mid tick 6/9, ticks end at the divider band, vertical labels step by the label size, horizontal labels sit one gap below the strip top 2026-11-16 16:45:11 +00:00
aiongg 7189821b26 A disabled solid button keeps its shape, dimmed 2026-11-16 16:27:51 +00:00
aiongg 14d5ec609a cargo fmt 2026-11-15 10:23:21 +00:00
aiongg 38a5547d45 hub-w1: net change of 1 commits
- hub-w1: review fixes (review-1)
2026-11-15 09:18:08 +00:00
aiongg e89d434cc1 framework-01-w2: net change of 7 commits
- framework-01-w2: repair 1
- framework-01-w2: RowStyle and ShapeTokens::rows go (size.rs, lib.rs rows of the sheet)
- framework-01-w2: list rows: option rows rounded, others square; layer rules in every theme (show.rs row of the sheet)
- framework-01-w2: review fixes (review-1)
- framework-01-w2: review fixes (review-1, files the rulings name)
- framework-01-w2: the escaped-sweep trial follows the sweep rule: only the eyes it switched are restored (fw01 round 2)
- framework-01-w2: a drop past the last item in reading order lands at the end, in every layout (fwcw round 3)
2026-11-15 04:46:05 +00:00
aiongg e9e3a961f4 Merge next (CI lint fixes) into phase2/stubs
# Conflicts:
#	crates/color/src/ui/swatches/menu.rs
2026-11-14 03:13:33 +00:00
aiongg deeb91802f Lints: doc links, test lint allowances, struct update in tests, wildcard imports, dead code 2026-11-14 02:35:35 +00:00
aiongg dad3e170c5 Contract stubs: craft-color gradient module, wip 2026-11-14 02:15:00 +00:00
aiongg 7808f7f6d2 Lints: fix clippy, rustdoc and test findings (shadowed f32 module, unused import, private doc link, struct-update defaults, test attributes lost in the 13 Nov sync) 2026-11-14 00:15:29 +00:00
aiongg a17171af48 Lints: drop the workspace missing_docs lint and warn on it in the framework crates that document every public item 2026-11-14 00:15:29 +00:00
aiongg eee9ab4e6d Ramp size roles say what reads them; trials: a container sharing a scrolled view keeps its content height when taller and runs its body at most the draft more than in a plain Stack 2026-11-13 19:26:51 +00:00
aiongg f04b5867fa Color panel look (fix round): channel rows at production density with content-sized fields and the colour band of size.ramp.bar; readout letters and fold; framed edited well; gamut warning beside its swatch; ramp a control tall
- PaintUi::measure: a composite measures a child as PaintUi::child shows it.
- SliderField::field_sizing; the Inline field takes its measured width.
- Slider: the triangle starts under the colour band; TrackLook::ramp is size.ramp.bar.
- NumberField: a field that rounds what it commits is sized at those places; a mixed field is sized as with a value.
- ColorReadout: a wrapping row, the hex field then R, G, B fields after their letters, each content-sized.
- SwatchPair::frame_active; ColorWarningChip::beside.
2026-11-13 19:26:50 +00:00
aiongg b27d5d4eb5 Theme: shape.wells, the shape of a colour well that stands on its own; SwatchPair draws round wells where the theme says so (Adwaita, Breeze, Soft) 2026-11-13 19:26:50 +00:00
aiongg bcd07c7167 F-5 docs: the hover band lies inside the view; the host's clock is the last painting pass 2026-11-13 01:08:19 +00:00
aiongg 74a1426e57 F-5 review: the host reports the autoscroll step from the pass clock; the hover band is size.hit.edge inside the view's rect; a secondary background press leaves a text session open 2026-11-13 01:08:19 +00:00
aiongg a8607f3526 Theme: field widths follow the text size; a field holds a number of characters 2026-11-13 00:45:28 +00:00
aiongg 683e9b25da Thumbnails: square, with a frame in line.frame at the slot's edge and the picture inside it; line.frame is a new picture-frame role (near black in dark mode, the control edge in light) 2026-11-12 15:42:15 +00:00
aiongg 1cc518f92d Icon strokes scale with the glyph: one stroke.icon role, a share of the icon side (Lucide at 1.75 of 24), for stroke sets and the suite's stroke drawings alike 2026-11-12 15:23:58 +00:00
aiongg 51efda762e Panel options: thumbnail size samples take their own size role
The samples beside the thumbnail size choices of a panel's options dialog (Layers, Channels, Paths) are larger than the
panel's own thumbnails, so the three choices read apart. They take `size.thumb.sample.{sm,md,lg}`: 36, 48 and 96 in
Compact, 36, 68 and 96 in Comfortable (twice the row thumbnails, as the old dialog drew them; PhotoCraft draws 38, 68
and 96). A Picture shows one through `PictureSize::Sample`, and the Layers options dialog's samples use it.
2026-11-12 15:12:11 +00:00
aiongg fc7d05a5fc NumberField: monospace digits, the unit apart at the end of the value area
The digits take the mono type role, as the timecode field does. The unit is a
smaller faint caption pinned at the end of the value area with the inline gap,
so the number centres in the room before it and stacked fields line their
units up. Units::suffix goes; callers pass the unit's symbol.
2026-11-12 15:12:11 +00:00
aiongg 2e64f951b8 Slicer: accent header band and control-radius tiles
HeaderRegion's band takes a BandFill: a surface or a tone's tinted fill
(HeaderRegion::tint). Tone::soft_fill and Tone::on_soft give a tone's fill
and the ink on it from one token table; StyleCx::tone_fill and the new
tone_on_fill read them. TitleRow::tone sets a header title in that ink.

The slicer's header is an accent band, inset like the body, with its
caption a section-strength TitleRow in accent.on_soft on the funnel's
centre line; its tiles take radius.control instead of the button radius.
2026-11-12 14:32:51 +00:00
aiongg d62a71318a Dialog width: a dialog opens at least size.dialog.least wide and its paragraphs wrap at size.dialog.wrap, through ContainerProps::least_width and a new wrap_width; content that cannot wrap widens it 2026-11-12 14:32:51 +00:00
aiongg 5736aded10 A disabled component dims its data colours: PaintUi::draw paints them at Opacity::DISABLED while the component paints its Disabled state, keeping each hue; one data mode in Draw beside the inactive part's disabled fill, which faces of inactive parts now take too. The icon badge paints through Draw, IconButton's own badge prop goes (IconSpec::badge is the one badge), and IconButton gets a Badge story 2026-11-12 14:32:50 +00:00
aiongg 1c8fa69e97 Text rows: a wrapped cell keeps the room a text row has around its line, so a field with a one-line value stays a text row high 2026-11-12 14:32:50 +00:00
aiongg c51f6a103e Text row height role: size.row.text is one body line and space.gap.tight (compact 18, comfortable 21), at most a small control and at least the body line, for read-only display tables 2026-11-12 14:32:50 +00:00