Commit Graph
7311 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 cdde34581e Theme: the dock grips' shape is a theme setting, apart from the reference by default (photocraft#16426)
shape.grip in a theme file sets the grips' marks: ticks or dots, how many,
a tick's length, a mark's width and the gap. Each value is optional and
keeps the default, now eleven ticks five points tall (one more mark and
one point taller than the reference application's ten of four). The
theme editor, the writer (unknown keys kept) and the token dumps carry it;
GripMarks paints from the tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:49:02 +01:00
David MannandClaude Opus 5.5 1f1437c4d9 Crop: a move past the canvas with Auto Center Preview, snapping and the Crop tool's defaults
The overlay test also moves the image with Auto Center Preview on, and a CropTool test moves an
upright frame past the canvas with the default settings (image mode, Auto Center, Delete Cropped
Pixels on), at 31 % and with snapping to the document's edges, as the app runs it.

Part of storytold/photocraft#16404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:56:28 +01:00
David MannandClaude Opus 5.5 1aabfe2baf Memoized views keep the row line they stand on, so a memoized bar fills its slot
A memoized view starts a layout room of its own (`start_view_room`), which dropped the row line of
the row around it. A fill-width row shown through a memoized view (an app's options bar in the
shell's options slot) then measured its content with its padding on top and bottom instead of
taking the slot's line: its members sat below the slot's middle and the bottom of a text button's
outline was cut off. The view now keeps the line as a levelled unit does (`places: false`): its
content fills the line without taking slots on it.

Fixes storytold/photocraft#16405.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:07:21 +01:00
David MannandClaude Opus 5.5 0130c9090f Dock grips: drop the import the grip ink no longer needs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:07:21 +01:00
David MannandClaude Opus 5.5 8f8d03b771 Crop shield: one unfeathered mesh, no seam between its pieces
`paint_outside` filled each convex piece of the area outside the frame on its own, feathered on all
its edges, so along an edge two pieces share both faded out and the translucent shield left a thin
strip less covered than the rest: a light line from the frame's corner to the window's edge. The
pieces are now one mesh without feathering (`Draw::data_fill_tiled`), whose triangles meet with no
gap and no overlap. Crop and Perspective Crop both paint through it.

Fixes storytold/photocraft#16410.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:46:51 +01:00
David MannandClaude Opus 5.5 13d70a400d Theme: a line.grip token for the dock grips' marks, a little apart from the panel
The dock grips drew their marks at 0.83 of the panel colour, as the references do on their lighter
panels; on our dark panels that is #2a2a2a on #323232, almost invisible, and no theme could choose
it. The marks now use a `line.grip` token: by default two steps from the panel (lighter in dark
mode, darker in light mode; Pro dark #474747 on #323232), and a theme can pin its own.

Fixes storytold/photocraft#16406.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:42:58 +01:00
David MannandClaude Opus 5.5 4d059df7ce Crop: a move of an upright document crop may take the frame past its bounds
An edge or corner drag of a document crop already goes past the canvas (photocraft#16043); a move
of the frame (Classic Mode) or of the image under it (image mode) still stopped at the canvas
edge, so a crop could not take in the area past it by a move. In the reference application it
does. A move of an upright document crop now goes past the bounds too; a turned frame's move, turns,
drawn frames, nudges and a placed picture's crop keep their limits.

Fixes storytold/photocraft#16404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:38:14 +01:00
David MannandClaude Opus 5.5 7536627202 Navigator: a view box drag follows every pointer move over a settling canvas
The canvas settles the view a drag proposes to whole device pixels, so the view the app writes
back differs from the Navigator preview's proposal by a fraction of a pixel. The preview used the
default `same_value` (exact equality), so the host-change check ended its drag after the first
move and the canvas only caught up on the release. It now compares with the tolerance the canvas
scroll bars use (photocraft#16006), shared as `settled_as_proposed`.

Fixes storytold/photocraft#16403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:38:14 +01:00
David MannandClaude Opus 5.5 d5c7ae2c51 WIP: Navigator drag, Crop move past the canvas, options bar clip, grip ink (photocraft#16403-#16406)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:33:23 +01: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