Commit Graph
7329 Commits
Author SHA1 Message Date
aiongg fe271bf574 Dropdowns name the list that takes their opener's keys
A dropdown's opener (a picker's field or button) hands Up, Down, Page keys,
Enter and Tab to a collection in its dropdown. The framework took the first
type-ahead collection it found in the layer. The font picker's dropdown holds
the class column before the family list, so with filters shown Enter and the
arrows went to the class column: typing a name and pressing Enter picked
nothing.

Overlay::list (FocusPolicy::list) names the collection instead, and every
dropdown names its list: Select, ComboBox, TreePicker, completions, number
presets, PopupList (new PopupList::list) and the font picker, which names its
family list while it shows one. The type-ahead guess is gone.
2026-11-22 18:59:40 +00:00
aiongg 27e5af8151 Merge pull request #3064 from aiongg/font-picker-arabic-story
Font picker: one sample per row, in the sample text
2026-11-22 13:19:00 -05:00
aiongg 3c1c1284d8 FontSample: a face not yet ready reserves the room's width
Without a ready face the sample measured no width, so an unavailable sample
allocated nothing. It reserves the most the ready layout can take, the width it is
offered, at LINE_EM of its size: the band the sample will draw in. A ready face
lays out as before.
2026-11-22 17:01:21 +00:00
aiongg 0f8efcadd9 ListRow: the collection's leaves setting is a pub(crate) prop
The derive writes the setter, as design-lint's props/hand-setter asks.
2026-11-22 17:01:21 +00:00
aiongg 57c4b23a70 Font picker: the banner shows what the family's row shows
The banner drew the preview text in the current family even when its face lacks the
text's characters (tofu). It takes the rows' sample text, through the same
FamilyInfos::sample_text: the text, else the family's name, else its first glyphs.
2026-11-22 16:10:48 +00:00
aiongg a47b795b1f Font picker: one sample per row, in the sample text
Every row's sample shows the picker's sample text: the host's preview text, else the
sample word. The Arabic second sample and its script check are gone. A face that
lacks the text's characters keeps the existing fallback: its name, else its first
glyphs.

A sample, in a row, the banner or the panel, is laid out and drawn only in its own
face once it is ready. Until then (and for good when the face is unavailable or the
family has none, SampleFace::Missing) it keeps its band, LINE_EM of its size high,
and draws nothing, instead of laying the text out in the interface face, which may
lack its characters.

The Arabic story becomes font_picker_arabic_sample_text: an Arabic preview text over
a catalog with Noto Sans Arabic.
2026-11-22 16:08:54 +00:00
aiongg e8254eb4b4 List rows: a hosted trailing field takes its own height up to its row's
A trailing or optional field was capped at the base row height, so in a taller row
(a large thumbnail) a field that measures taller was cut to one base row and centred,
clipping what it drew outside that band (the font picker's Arabic sample lost its
hamza and dots). It is capped at its slot, the row's height, as cell fields are.
2026-11-22 16:08:54 +00:00
aiongg 5c14a9d042 Font picker: give the Arabic sample story Noto Sans Arabic from the craft fonts set
The story's catalog had no face that maps Arabic, so no row showed the
Arabic sample. craft-font-manager's build script embeds Noto Sans Arabic
with fonts-build's Embed when the suite feature is on and CRAFT_FONTS_DIR
names a craft-fonts checkout; without it the table is empty and the story
shows the other families only.
2026-11-22 15:41:05 +00:00
aiongg 315a223e69 Merge pull request #3010 from aiongg/font-picker-port
FontPicker: production's font menu (row layout, aligned names, sample column, banner, separators)
2026-11-22 10:29:58 -05:00
aiongg 0baee1ff93 Merge pull request #3028 from aiongg/ime-empty-commit
ime: an empty commit with nothing marked is no edit
2026-11-22 10:29:45 -05:00
aiongg 25f2207178 Merge pull request #2995 from aiongg/win-hit-root
ui-shell: embed::before_ui takes the window handle, outside the app feature (photocraft#15870)
2026-11-22 10:29:32 -05:00
Martin Ball fa466c2639 Merge pull request #3049 from batistalucasv/fix/companion-layer-inbar-padding
ui-widgets: add bar padding, InBar env, and start alignment to Menu::companion CompanionLayer
2026-11-22 15:23:44 +00:00
Martin Ball c96fe1a60f Merge pull request #3048 from batistalucasv/fix/unsaved-dialog-alert-role
ui-panels: restore AlertDialog role and AccessKit reason description in UnsavedChangesDialog (#3040)
2026-11-22 15:23:39 +00:00
batistalucasv de9d130f0d ui-panels: restore AlertDialog role and AccessKit reason description in UnsavedChangesDialog (#3040) 2026-11-22 10:27:52 -03:00
batistalucasv 7cd2de8667 ui-widgets: add bar padding, InBar env, and start alignment to Menu::companion CompanionLayer 2026-11-22 09:22:07 -03:00
Martin Ball 9906b2b9da Merge pull request #2983 from batistalucasv/fix/canvas-scrollbar-thickness-margin
ui-canvas: restore comfortable vertical scrollbar thickness and right edge margin
2026-11-22 12:06:23 +00:00
David Mann e953d47a37 Merge pull request #2978 from davidmann4/fix/16328-held-thumb-release
Canvas scroll bars: a thumb's pressed extent belongs to its press (photocraft#16328, photocraft#16329)
2026-11-22 12:09:32 +01:00
aiongg dad1d6ab80 ime: an empty commit with nothing marked is no edit
An empty commit inserts nothing, so it replaces no selection (the Type
tool's selected placeholder, photocraft#15556) and ends no composition
whose confirming key needs the guard frame. An empty commit that ends a
composition still ends it.
2026-11-22 09:06:38 +00:00
aiongg c6c2a816ef Merge pull request #3002 from aiongg/type-cursor-canvas
text: editor I-beam only over its text
2026-11-22 01:58:56 -05:00
aiongg 640864d0e2 FontPicker: the name column is as wide as its widest row and at least the field's sample name (ColumnSpec::at_least); library list leaves always aligned; one SAMPLE_EM; star trial checks the favourite and the family 2026-11-22 06:57:34 +00:00
aiongg de6b66d7e7 ListRow::leaves is set only by List::tree_leaves 2026-11-22 06:57:34 +00:00
aiongg 8a546e58f1 One separator between option groups: ListRow::rule goes, the preset browser, command palette and brush settings use ListRow::separator, whose height comes from the Divider's SeparatorRule 2026-11-22 06:57:34 +00:00
aiongg 54f5950a26 font-catalog: a background scan that panics lets the next call scan again 2026-11-22 06:57:26 +00:00
aiongg 771220fca5 Rows and grids clear the layer floor only where one is set 2026-11-22 06:57:26 +00:00
aiongg 4963e8405d FontPicker: popup sized to its content, aligned leaves keep the disclosure column, name column as wide as the field's sample
- FontPreviewBanner measures its name and sample, not the room: reporting the room sized the popup layer to the banner, so the rows under it took no pointer input.
- TreeLeaves::Aligned keeps an empty disclosure column on top-level leaves instead of adding an indent step, which the shrink rule gave up first. The picker aligns only lists that have a family to open, so a plain list keeps its names at the start. ListRow::leaves is a derived prop.
- A collection inside a row or grid takes no layer floor: the class column took the field's width beside the font list.
- The name column is as wide as NAME_SAMPLE, the rule the field's width follows; the list shows no column header; style rows stay in the name column and reserve the check column.
- Row samples are named "{name}: {sample}", as the font manager names its samples, so the row keeps the family's name to itself.
- The Arabic sample shows as an optional trailing field.
- FontPreviewBanner has stories; the open-list story shows the recent group, a family with styles and the class column.
2026-11-22 06:37:11 +00:00
aiongg 2450df6735 FontPicker: production's row (star column, aligned names, unframed sample column, format badge), preview banner on a well, class column as options, ghost Clear All, rule after recents, private families hidden, samples need outlines, loading state 2026-11-22 06:07:57 +00:00
aiongg f1351c0a63 font-catalog: is_private_family; scan_in_background starts one scan; the font manager's installed list leaves private families out 2026-11-22 06:07:57 +00:00
aiongg b946fdf184 ListRow::separator draws a rule between option groups (Select, number presets); List::tree_leaves lines leaves up with groups 2026-11-22 06:07:57 +00:00
aiongg 457900ec99 Merge remote-tracking branch 'upstream/next' into win-hit-root 2026-11-22 05:56:16 +00:00
aiongg d40340cd42 text: the editor's I-beam request in its own function (cognitive complexity) 2026-11-22 05:55:54 +00:00
aiongg d400294ff2 Merge pull request #2914 from aiongg/cmc-layout
Layout: craft controls inside raw egui containers lay out in that container (photocraft#16289)
2026-11-22 00:55:10 -05:00
aiongg e49f8de1ea text: show the editor's I-beam only over its text and during its own press
The text editor requested the I-beam every pass of an open session, wherever
the pointer was. At hover priority it beat the canvas tool's cursor and showed
over panels, the options bar and the rest of the UI. It now asks only while its
press is not idle: the pointer is over the editor or its own press is held.
2026-11-22 05:48:54 +00:00
batistalucasvandDylan M. Taylor e71898caae pages: derive PageView spacing from ComponentSet (#2952) (#2967)
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-21 22:49:50 -05:00
Dylan M. Taylor b40e740422 Merge pull request #2986 from batistalucasv/fix/ribbon-gallery-sunken-well
menu/ribbon: render framed Gallery with sunken well surface and restore stepper button contrast
2026-11-21 22:38:45 -05:00
batistalucasv 0fdbaff443 font-manager: paint FontPicker missing-font warning icon in status.warn.fg (#2972) 2026-11-21 22:20:36 -05:00
batistalucasv 7c11091487 ui-canvas, pages: allow Canvas and PageView editors to report inactive edits (#2966) 2026-11-21 22:20:32 -05:00
aiongg 8d39ecb4db ui-shell: embed::before_ui takes the root window's handle, outside the app feature
An app with its own eframe App and without ui-shell's app feature (which turns
on egui's default fonts) could not call before_ui, so its root window on
Windows got no hit sink: corner resizes and title-bar moves started late,
through the grips' StartResize. before_ui now takes any
raw_window_handle::HasWindowHandle (eframe's Frame), and it and the first fit
build without app. Native only: the browser has no native window.

The trial checks that with the sink installed, the window region's corner and
title bar answer the platform's hit test and a corner drag sends no
BeginResize.
2026-11-22 03:17:29 +00:00
David Mann 5814eb87b1 Merge pull request #2977 from davidmann4/fix/16333-rail-grip-memo
Docking: a tool rail's grip strip is a memoized view (photocraft#16333)
2026-11-22 03:31:44 +01:00
batistalucasv ebba2b5d30 menu/ribbon: render framed Gallery with sunken well surface and restore stepper button contrast
Framed galleries now render with the sunken well surface (`colors.surface.sunken`)
and provide a dedicated stepper track (`colors.surface.panel`) with divider definition
for the stepper buttons column to preserve contrast and hierarchy in both light and dark modes.
2026-11-21 23:31:00 -03:00
aiongg bf37300a17 ToggleCell: the empty_off test lives in the layers panel_eye trial (design-lint: no cfg(test) module in an egui-linked crate) 2026-11-22 02:19:01 +00:00
David MannandClaude Opus 5.5 3485ca18ad Canvas scroll bars: a thumb's pressed extent belongs to its press (photocraft#16329)
The extent is taken in the first pass that sees the press, keyed by the
press's origin and time, and only from the view, instead of only in the
pass that reports `Down`. In the running PhotoCraft a thumb drag moved
the view the wrong way: it mapped the pointer onto an extent kept from
an earlier press, which means the new press's `Down` pass did not leave
its extent behind. With this and the release clearing the slot, real
mouse drags keep the thumb under the pointer (right 40, left 40, past
the end and back).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:18:35 +01:00
aiongg 050f590c57 Merge remote-tracking branch 'upstream/next' into cmc-layout 2026-11-22 02:18:10 +00:00
aiongg 750a9bdd57 Merge pull request #2896 from aiongg/rework-d3
Focus: a removal's new focus is not revealed; the canvas text editor returns the focus to the canvas
2026-11-21 21:17:56 -05:00
aiongg 212ed8a373 Merge pull request #2905 from aiongg/ribbon-rtl-fit
Shell: a content-sized slot grows to content that fills its height (the ribbon's groups fit again)
2026-11-21 21:17:43 -05:00
aiongg 20d323bc7a Merge pull request #2910 from storytold/fix/2433-toggle-sweep-layering
Keep checkbox sweep runtime below the contract layer
2026-11-21 21:17:28 -05:00
batistalucasv ed9beb494f ui-canvas: restore comfortable vertical scrollbar thickness and right edge margin 2026-11-21 23:08:20 -03:00
David MannandClaude Opus 5.5 058df7d51a Docking: a tool rail's grip strip is a memoized view (photocraft#16333)
The grip strip under a host-shown rail's column bar (#2934) ran its
GroupGrip in every pass, also when the only input was the pointer
moving elsewhere, where the column bars and tab rows replay. It is now
a MemoView held to the strip, keyed by the rail's group, with the drag's
start leaving through an outbox; the group's size goes on the drag
outside the view as the column bar does it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:20:51 +01:00
David MannandClaude Opus 5.5 bc52f3ef0c Canvas scroll bars: a thumb's pressed extent ends with its press (photocraft#16328)
The press slot that keeps the extent a thumb was pressed at is kept until
the component clears it, and the bars never did. After a thumb drag the
bars kept unioning the drag's old extent, so a later zoom, pan or
Overscroll change showed the old range: page presses stopped short and
PhotoCraft's Overscroll test read a scroll room of 0. The release and a
cancel now clear it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:20:50 +01:00
David Mann cec6d87ff2 Merge pull request #2939 from davidmann4/fix/about-float-room
Dialogs: a layer's body leaves its footer room when it fills (photocraft#16326)
2026-11-22 01:37:30 +01:00
David Mann 4fc1e38945 Merge pull request #2934 from davidmann4/fix/photocraft-16332-grip-ticks
Docking: grips are the reference's upright ticks; a grip under a tool rail's column bar (photocraft#16332, photocraft#16333)
2026-11-22 01:37:10 +01:00