Commit Graph
525 Commits
Author SHA1 Message Date
dotCooCoo 1cecbb9aee Display Print Size: keep the last density, fits and percentages right
- A fit made while a floating window's display has not answered keeps
  counting from the density the window was last shown at, so Actual
  Size and the zoom field no longer fall back to 96 points to an inch
  meanwhile.
- A view that still fits its floating window keeps fitting it after a
  move to a display of another density: the fit kept for the window
  takes the settled zoom.
- The plausible range of a measured display applies to its pixels per
  inch, before the display scale divides them into points. A
  1920 x 1080 display of 527 x 296 mm at scale 4 now measures about
  23 points to an inch instead of falling back to 96, and Actual Size
  takes any finite, positive point density the host measured.
- View > Set Zoom, Zoom In and Zoom Out, the wheel and the Zoom tool
  clear the zoom a fit gave the view, so a percentage that equals the
  last fit's zoom keeps its percentage at the first reading.
- The Actual Size and preference descriptions say that a size no
  display has also counts 96 points to an inch.
2026-11-22 06:25:08 -08:00
dotCooCoo 1a48bd827b Display Print Size: a fit made during a reading counts from the last one
A fit made in the main window while its display was being read counted
from 96 points to an inch until the reading arrived, so the zoom field,
the tab title and the zoom stops counted from a different density than
the window's other views. The fit now counts from the last reading, and
the reading, when it comes, keeps the fit's zoom, also when the views are
settled again before it arrives.

An app that draws no frames now still reads the displays again a minute
after the last reading: it asks for a frame then.

Tests now cover Actual Size after a fit that gave the same zoom, a
Navigator thumbnail click, and a floating OS window's display readings
(first display, a move, off every display, a fit, and docking back).
docs/mcp.md now states which views keep their zoom at the first reading,
that X11 and Wayland are read on Linux only, that headless sessions and
the CLI count 96 points to an inch, and that the preference also applies
in Pixel Preview. The progress line names the two rules that differ from
the help page.
2026-11-22 04:54:25 -08:00
dotCooCoo 3098776c07 Display Print Size: on by default, each window counts its own display
Preferences › General › Display Print Size at 100% Zoom is now on by
default, also for saved preferences that predate the key; a saved
choice to turn it off stays off.

A document floating in an OS window of its own counts 100% from the
display that shows that window. A move of the main window leaves the
zoom of floating windows alone, and a window that moves to a display of
another density keeps its zoom percentage.

The desktop app lists the displays once a second while the preference
is on and reads their physical sizes on a background thread when the
list changes; the UI thread does not wait for the X11 or Wayland
queries. RandR is asked for its version before the CRTC and output
queries. A reading that fails is tried again after 10 seconds, and the
displays are read again a minute after the last reading, so a display
replaced by one that lists the same gets its own size.

The Navigator's zoom field, slider and thumbnail clicks count the zoom
from Actual Size, as the status bar's zoom field does; before, a click
on the thumbnail with the preference on changed the zoom. ui.inspect
gives screenPpi and printPpi. The preference's description is updated
in every catalog.
2026-11-22 03:24:23 -08:00
dotCooCoo 050ddcb567 Fix #9051: Display Print Size shows 100% at the display's physical size
With Preferences › General › Display Print Size at 100% Zoom on, 100%
took 96 screen points to an inch on every display, so a ruler held to
the screen measured more or less than the document said on any display
of another density. The desktop app now measures the density of the
display that shows the main window from the physical size the system
reports (CGDisplayScreenSize on macOS, the monitor's raw DPI on
Windows, the RandR output's millimeters on X11, the wl_output geometry
on Wayland), and measures it again when the window moves to another
display, where every document window keeps its zoom percentage so the
art keeps its physical size. Actual Size, the zoom field, the zoom
stops and the tab titles count 100% from that density. Where the
system reports no size, or a size no display has (zero, an aspect
ratio given as the size, or axes that disagree), an inch stays 96
points, as on the web.

Zoom stepping takes the density from the app instead of a
process-wide flag, and the last zoom stop in each direction stays in
the zoom range.
2026-11-22 03:22:21 -08:00
BFlat 78d135c38d Merge pull request #8786 from dotCooCoo/fix/dock-monitor-work-area
Panels: give floating panels and the restored window each monitor's work area
2026-11-20 06:15:40 +07:00
dotCooCoo 93b0542438 Panels: give floating panels and the restored window each monitor's work area
The monitor list for floating panels now carries each monitor's work
area: rcWork from GetMonitorInfo on Windows, and visibleFrame on macOS,
turned into the top-left origin and physical pixels of the monitor's
rect. The work area is converted to points with the same scale and zoom
as the rect, and craft-ui uses it to decide whether a reopened panel's
title bar can be grabbed and where to move it. A work area with no width
or height is left out.

Restoring the main window now keeps it inside its monitor's work area
too, so a window saved at the top edge of a monitor with a taskbar along
its top opens below the taskbar, and a window taller or wider than the
work area is made to fit it, with room for a system title bar and
border when the window has them.

On Windows the panel list stays empty when the monitors have different
scale factors, as before, and a build without the wgpu feature reads no
work areas. Linux and the BSDs keep the whole monitor rect.
2026-11-19 13:31:56 -08:00
dotCooCoo 856e61afb4 Merge main into feat/3d-custom-bevels 2026-11-19 11:13:58 -08:00
bflatastic 6a3db0e842 Merge main into #7977 2026-11-19 21:44:26 +07:00
FredAppsandCodex cb8f5e0405 chore: unify shared craft-libs pin for HPGL and palette (#8703)
* 778: align shared dependencies on merged HPGL repair [skip ci]

* 778: record Windows-resolved unified shared lock [skip ci]

* 778: prepare unified merged palette dependency revision [skip ci]

* 778: record Windows-resolved palette revision lock [skip ci]

---------

Co-authored-by: Codex <codex@openai.com>
2026-11-19 09:18:36 -05:00
dotCooCoo 3fb77f58bb Merge main into feat/3d-custom-bevels 2026-11-19 04:54:39 -08:00
dotCooCoo 5d8609e881 Merge main into feat/proof-setup-save-load
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 04:47:38 -08:00
dotCooCoo db1442db8a Merge main into feat/3d-custom-bevels 2026-11-18 23:53:53 -08:00
dotCooCoo c1e5db7cda Merge main into feat/proof-setup-save-load 2026-11-18 23:51:32 -08:00
bflatastic c528513911 Merge main into #6295
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 14:50:17 +07:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo 2eeb582f35 Merge main into feat/proof-setup-save-load 2026-11-18 17:16:14 -08:00
ruchirguitar 0858c0d516 Merge main into feat/5804-private-editor (#5804) 2026-11-19 01:46:48 +05:30
bflatastic 338a3f13bc Merge main into #5341
# Conflicts:
#	docs/gaps.md
2026-11-19 01:05:05 +07:00
dotCooCoo 18c4a7b965 Merge main into feat/stylus-wheel 2026-11-18 07:27:22 -08:00
BFlat c72721a125 Merge pull request #8533 from dotCooCoo/fix/windows-save-extension
Windows Save As follows the selected file type (#5451)
2026-11-18 14:18:16 +07:00
BFlat 9e7ae92c8d Merge pull request #8036 from dotCooCoo/feat/display-profile-read-again
Color: Edit › Refresh Monitor Profile reads the display's profile again
2026-11-18 13:13:37 +07:00
dotCooCoo 58e510f06c Fix #5451: Windows Save As follows selected file type 2026-11-17 21:18:56 -08:00
dotCooCoo d42995dcff Merge main into feat/proof-setup-save-load 2026-11-17 20:26:07 -08:00
BFlat 3d7acda832 Merge pull request #7134 from dotCooCoo/feat/web-korean-devanagari-fonts
Web: Korean and Hindi interface text draws with real glyphs
2026-11-18 10:30:59 +07:00
BFlat 12ab63aedd Merge pull request #7137 from dotCooCoo/feat/script-file-folder-write
Scripts: File and Folder objects write files inside a script's scope, with per-script grants and pickers
2026-11-18 10:25:30 +07:00
BFlat cb76b41e96 Merge pull request #8086 from dotCooCoo/feat/low-latency-drawing
Performance: Low-Latency Drawing preference presents without vsync, capped at 240 fps
2026-11-18 10:15:17 +07:00
dotCooCoo f2a48d2a30 Color: Refresh Monitor Profile's reader doc says when a request is dropped
A frame that finds Use Monitor Profile for Canvas off drops a waiting
request; a request made with the preference on is kept when the
preference goes off and on again between two frames.
2026-11-17 18:39:01 -08:00
dotCooCoo ed991619f0 Merge main into feat/display-profile-read-again 2026-11-17 18:24:55 -08:00
dotCooCoo eb040a8390 Merge main into feat/3d-custom-bevels 2026-11-17 12:41:57 -08:00
dotCooCoo 09b7f6c3ce Merge main into feat/stylus-wheel 2026-11-17 12:36:31 -08:00
dotCooCoo 61abac22bf Merge main into chore/craft-libs-exr-deep-offsets
# Conflicts:
#	Cargo.toml
2026-11-17 07:20:10 -08:00
BFlat c4147826a3 Merge pull request #7353 from dotCooCoo/fix/i18n-adjacent-placeholders
i18n: messages with values side by side can be translated
2026-11-17 21:32:55 +07:00
Taha-Mahmoodi 92a2d2de71 Fix clippy on macOS with current stable: dead_code on Overrides::is_set, needless_range_loop in cut_edge
Overrides::is_set is only called from main under cfg(not(macos)), so it is allowed to be unused there (the repo's cfg_attr pattern). settle_cut_edges walks blended with iter_mut().enumerate() instead of indexing it.
2026-11-17 16:48:13 +04:30
dotCooCoo 14d814b9f0 Merge main into feat/stylus-wheel 2026-11-17 03:57:49 -08:00
dotCooCoo d39471962e Merge main into feat/script-file-folder-write 2026-11-16 20:51:55 -08:00
dotCooCoo fc1ed0acb6 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 19:51:24 -08:00
dotCooCoo 07afd411bb Dependencies: take every craft-libs crate from craft-libs main at 64b181977a
Every storytold/craft-libs git dependency, the hayro, krilla and
linesweeper patches and the web app's craft-web-api now use one
revision, 64b181977a, so Cargo.lock holds one copy of each craft-libs
crate. craft-ui's docking Monitor has a new work_area field; the
monitors VectorCraft lists set it to None, as winit reports no work
area.
2026-11-16 18:57:11 -08:00
dotCooCoo 39d776aa2b Merge main into feat/web-korean-devanagari-fonts 2026-11-16 09:54:01 -08:00
dotCooCoo 3edb844683 Performance: Low-Latency Drawing preference presents without vsync, capped at 240 fps
Preferences › Performance › Low-Latency Drawing (lowLatencyDrawing, off by
default) is read when the app starts and asks for wgpu's AutoNoVsync. The
present mode comes from --present-mode, then VECTORCRAFT_PRESENT_MODE, then
the preference, then the default; with the preference off and no override
the window surface is unchanged. The startup log names "(preference)" or
"(override)" after the mode.

Whenever the window presents without vsync, from the preference or an
override, main-window frames start at most 240 times a second (about
4.17 ms apart). The wait comes before egui reads the frame's input, and
the frame's time moves on by it. With vsync the display paces the frames
and no cap applies.

The checkbox shows on the desktop with the note that it applies the next
time VectorCraft starts. A value that is not a boolean is an error.

Fixes #6013
2026-11-16 00:35:22 -08:00
dotCooCoo fe9cfa875c Color: Sample Color from Screen picks where the button was released
The Windows sampler read the pointer with GetCursorPos when it handled
WM_LBUTTONUP, so a pointer that moved after the release picked a
different pixel. It now takes the point from the release message's
lParam, a signed client point, and converts it to screen coordinates.
lParam holds each coordinate in 16 bits, so on a virtual screen wider
or taller than 32,767 pixels the high bits come from the message's own
pointer position (MSG.pt).
2026-11-16 00:18:50 -08:00
dotCooCoo 388044db13 Color: Sample Color from Screen works on Windows
Windows had no screen color sampler, so the Color Picker's eyedropper
button was gray and ui.sampleScreenColor returned an error there.

The new sampler copies the virtual screen (every monitor, including
ones at negative coordinates and at other display scales) and covers it
with a borderless topmost window that shows the copy under a crosshair.
A left click picks the copied pixel, read as sRGB. Escape, a click of
another mouse button, Alt+F4 or switching to another window cancels.
The window runs on its own thread, so the app keeps drawing, and the
copy's size is checked before it is allocated.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md
and the ui.sampleScreenColor params text.
2026-11-15 23:15:43 -08:00
dotCooCoo a9dbe7f879 Color: Edit › Refresh Monitor Profile reads the display's profile again
Use Monitor Profile for Canvas reads the display's profile every 10
seconds and when the window moves to another display. The new command
view.refreshMonitorProfile (Edit › Refresh Monitor Profile, after Assign
Profile…) makes the next frame read it at once, past both the 10-second
reading and the 1-second display check. A request made while a reading
runs waits for that reading to end and then starts.

The command returns {requested: true} before the profile is read, and
ui.inspect's displayProfile reports readRequested while the request
waits. It is off and returns an error while the preference is off
(nothing is queued) and where nothing reads the display's profile (the
web build). It changes no document, proof setting or preference.

The reading thread now clears its busy flag before it asks for a
repaint, and it also asks for one when a request is pending.
2026-11-15 21:31:22 -08:00
dotCooCoo d66a84b4f6 Merge main into feat/stylus-wheel 2026-11-15 16:10:22 -08:00
dotCooCoo 3c73995861 Merge main into feat/script-file-folder-write 2026-11-15 16:06:24 -08:00
dotCooCoo bcab943669 Merge main into fix/i18n-adjacent-placeholders 2026-11-15 16:06:09 -08:00
dotCooCoo d64310a02a Merge main into feat/3d-custom-bevels 2026-11-15 16:05:52 -08:00
BFlat bf7fefd89e Merge pull request #7954 from dotCooCoo/feat/file-info-templates
File Info: the menu saves, imports and lists metadata templates
2026-11-16 06:55:33 +07:00
BFlat e3f8d8abc6 Merge pull request #7961 from dotCooCoo/fix/clipboard-file-lists-formats
Clipboard: paste checks the size of another app's data before copying it
2026-11-16 06:54:09 +07:00
dotCooCoo f154aab7f5 Merge main into feat/3d-custom-bevels 2026-11-15 13:41:31 -08:00
BFlat 5ecb2cda86 Merge pull request #7926 from dotCooCoo/feat/present-mode-overrides
Graphics: --present-mode and --frame-latency set how the window presents frames
2026-11-16 04:30:17 +07:00