Commit Graph
7306 Commits
Author SHA1 Message Date
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 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 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
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
David Mann 7960974ea4 Merge pull request #2929 from davidmann4/fix/about-tab-spacing
About: set the About tab's blocks apart and centre the button and links (photocraft#16325)
2026-11-22 01:36:54 +01:00
aiongg 8ef85cc4a8 Dock group header: a raw egui layout again; its side-by-side items take none of the header column's flow facts, the tab row takes the rest of the line and a settled header runs no Row 2026-11-22 00:07:47 +00:00
David Mann c484499138 Merge pull request #2932 from davidmann4/fix/16328-canvas-scroll-range
Canvas scroll bars: pasteboard range, thumb stays under the pointer (photocraft#16328, photocraft#16329)
2026-11-22 00:37:48 +01:00
David Mann 06e460abbb Merge pull request #2931 from davidmann4/fix/menu-bar-space-hand
menu bar: Space on a focused title opens no menu (photocraft#16327)
2026-11-22 00:37:22 +01:00
David Mann 3263c55f58 Merge pull request #2919 from davidmann4/fix/photocraft-16321-hidden-eye-hover
Layers panel: a hidden layer's eye box stays empty under the pointer (photocraft#16321)
2026-11-22 00:36:38 +01:00
David MannandClaude Opus 5.5 2749cb5229 Docking: no doc link from the public grip option to the private marks style (photocraft#16332)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:24:21 +01:00
aiongg 8924367ed0 Select: a story with the searchable dropdown open 2026-11-21 23:09:50 +00:00
aiongg a2cb4687ce Trials: labelled check boxes in scopes in an egui grid cell keep one line and shared rows; an egui grid directly in a right-to-left body or row stays finite and as wide as under left-to-right 2026-11-21 22:46:07 +00:00
aiongg 6ca8b40158 Layout: a control finds an egui grid's cell through the UiStack, with_env is the one scope wrapper, an egui cell is decided at what its row needs
- Env::of sets Scoped::egui_cell when its walk from a Ui to the entry it finds passes an egui::Grid's Ui; scopes that pass the env on keep it, a body or a component's children end it. It replaces Ui::is_grid in the label step and the container hooks.
- In an egui cell the row is decided at what the label and the control at its ideal width need, from the cell's left edge, narrowed as well as widened.
- flow_scope folds into with_env (Overrides::id_salt); the dock group header and the Liquify footer are craft Rows.
- text_edit and the selectable text read the caller's env before they make their child Ui.
- Grid docs: rows after an egui container are placed over it.
2026-11-21 22:46:06 +00:00
aiongg 017ecd683f egui: pin storytold/egui next f5025284, whose Grid marks its Ui as UiKind::Grid and lays out left to right
craft::egui_fork::REV follows the pin.
2026-11-21 22:46:06 +00:00
David MannandClaude Opus 5.5 06238616d4 Dialogs: a layer's body leaves its footer room when it fills (photocraft#16326)
A layer's measuring run lays its body out before the footer runs, so a body
that fills the layer's room (a scrolling list, About's Contributors grab bag)
took the footer's height too. The layer came out taller than its room by the
footer, with empty space under the buttons, and in a small window it ran past
the window's bottom edge.

When what a layer with a footer took is taller than its room, the run is now
taken back and the body laid out again beside the footer that run measured,
as a capped inline body already is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:44:58 +01:00
David MannandClaude Opus 5.5 9597f188d5 Docking: grips are the reference's upright ticks; a tool rail gets a grip under its column bar (photocraft#16332, photocraft#16333)
The grip above each icon group of a collapsed column was a dotted hairline in a lighter ink than the panel
(7bf0a9b6d, e5e007233). The reference application draws its dock grips as ten upright ticks, one point wide,
four tall and one apart, a little darker than the panel in every interface colour, the same under the pointer.
`GripMarks` paints that row, through the new `Rule::ticks` (the dotted rule is now its square case) and
`Draw::grip_ticks` (exactly `count` marks at every scale).

A tool rail the host shows itself (a panel with a `DockGrid`, taken by `group_view`) now gets a grip strip of
`DockSizes::grip` on top, under its column bar: a `GroupGrip` with the ticks, whose drag moves the rail's group.
The host's view gets the room under it, and the group measures the strip on top of the view's height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:32:50 +01:00
David MannandClaude Opus 5.5 dc89eb1d3a menu bar: Space on a focused title opens no menu (photocraft#16327)
A lone Alt tap or F10 puts the keyboard on the in-window menu bar. The
titles took Space as their activation, so Space opened the lit menu
(File), and a held Space went on to run its first row. In a canvas app
Space is the momentary Hand, and the reference application never opens a
menu with it.

- The titles activate on Enter only; Down opens the menu as before.
  Space goes on to the app's shortcuts, and a shortcut pressed on the bar
  already gives the keyboard back to the stop the bar took it from.
- A bar that takes the keyboard while nothing holds it remembers the
  window's document canvas (the key target then) as that stop, so the
  shortcut and Escape give the keyboard back to the canvas instead of
  leaving the bar lit, where the next tool letter would open a menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:31:58 +01:00
David MannandClaude Opus 5.5 a10089e3f6 WIP: Dialogs: a floating dialog's body stays inside the window when it grows (photocraft#16326)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:17:43 +01:00
David MannandClaude Opus 5.5 e75b255e63 About: set the About tab's blocks apart and centre the button and links (photocraft#16325)
The centred layout drew the blurb, version, community button, link row and
built-with line in one stack at the row gap, and its rows were only as wide
as their content, so nothing was centred and no block stood apart. The
blocks now sit apart by the section gap, and the body and the About tab
take the dialog's width, so the button and the link row centre in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:16:23 +01:00
David Mann b572143761 WIP: Docking: grips as the reference's upright ticks; a grip under the toolbar's header (photocraft#16332, photocraft#16333) 2026-11-21 23:02:39 +01:00
David MannandClaude Opus 5.5 0712064ab1 Canvas scroll bars: pasteboard range, thumb stays under the pointer (photocraft#16328, photocraft#16329)
With Overscroll on, the bars' range takes in the pasteboard: at either end
of a track 100 screen points of the document stay in view at the opposite
edge, at any zoom and for documents larger or smaller than the window, as
measured in the reference application. Overscroll off is unchanged.

A thumb drag keeps the range the bar had at the press and maps the
pointer's movement from the press onto it, so the thumb stays under the
pointer: past a track's end the view waits, and moving back moves it again
in the same drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:02:38 +01:00
David Mann ca3d21835d WIP: Canvas scroll bars: pasteboard range and a thumb that stays under the pointer (photocraft#16328, photocraft#16329) 2026-11-21 23:00:28 +01:00
David Mann c1a34f7d8d WIP: menu bar: Space on the focused bar leaves it and reaches the Hand (photocraft#16327) 2026-11-21 22:58:36 +01:00
aiongg 9d928c7954 Trials: flow facts stop at egui containers, a Lazy keeps the row's line, labels in egui grid cells and narrow horizontals 2026-11-21 21:50:53 +00:00
aiongg f4bd0ae95f Layout: what a body sets up for its children in flow stops at egui containers; labels unbounded only in an egui::Grid cell
Env::of clears the start_room facts (grid cursor, row line and room, shrink step, first line, flow start, fill share,
content column, offered width) when the entry it finds was installed for an ancestor of the Ui, not for the Ui
itself. Copies made from it (with_env, MemoView's counting install, with_item_facts) and the measure keys start from
the cleared facts. Env::installed_for, row_line_of and grid_of go.

Craft code that runs children in a Ui it makes installs its env there: run_sharing and measure_sharing's no-share
block, run_spread's sweeps, Lazy and MemoView, Pages, measure_slot, the levelled unit's probe, a content-height pane at
a caller rect (a room of its own), PaintUi's children. flow_scope is the craft form of ui.scope, push_id and
with_layout around craft content; the dock group header and the Liquify footer use it, and the select search row and
the date popup's Today row are craft Rows. A craft Grid documents that an egui container in it is no cell.

The label step's signal is egui's Ui::is_grid (egui_cell): in an egui::Grid cell a labelled control or container
decides its label at its own width and widens at the cell's right edge in either direction. ui.horizontal keeps
wrapping and stacking at the room's end.
2026-11-21 21:50:53 +00:00
aiongg f6b98be494 egui: pin storytold/egui next efd532a5, which makes Ui::is_grid public 2026-11-21 21:50:53 +00:00
David MannandClaude Opus 5.5 7843e29364 Layers panel: a hidden layer's eye box stays empty under the pointer (photocraft#16321)
A list toggle cell drew its off icon under the pointer, so hiding a layer showed a crossed-out eye in its box until
the pointer left. The reference application leaves a hidden layer's box empty in every state. ToggleCell gains
`empty_off()`, which never draws the off icon, and the Layers panel's layer and sub-row eye cells use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:50:45 +01:00