Files
lightcraft/docs
Claude 423d209d16 LR-PREF-DISPLAY: Windows previews follow the monitor's colour profile
While no monitor profile is chosen in Settings > Display, Windows now shows
previews through the profile Windows Color System assigns to the monitor
showing the window (per-user or system), as macOS and Linux already do. It is
read about once a second, so moving the window to another monitor and changing
the profile in Windows are followed without a restart. While Windows
colour-manages the desktop itself (HDR, Auto Color Management), previews stay
sRGB.

The Win32 calls live in a new L0 helper crate, crates/wincolor, the second
crate allowed `unsafe` after crates/sysmem (SAFETY comments on every block,
safe API, Unknown on any failure); CLAUDE.md and AGENTS.md name it. GDI's
GetICMProfileW keeps the profile a process first saw, so WCS is read directly
and GetICMProfileW is only a fallback.

The profile-file loader moves from the Linux-only colord.rs to a shared
profile_file.rs (unchanged), with a cache that re-reads a file only when it
changes.

Verified on Windows 11 by setting and clearing a Display P3 profile and
toggling HDR while the app ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93HTyCiwYvbRGaAkjPvXn
2026-10-20 22:24:20 -07:00
..
2026-10-15 00:44:42 -04:00
2026-10-13 14:34:54 +02:00
2026-10-15 01:42:11 -04:00
2026-10-15 01:42:11 -04:00
2026-10-15 03:24:51 -04:00
2026-10-14 22:32:33 -04:00
2026-10-14 22:33:11 -04:00
2026-10-15 02:39:01 -04:00
2026-10-15 01:42:11 -04:00
2026-10-15 01:42:11 -04:00
2026-10-11 12:03:53 +00:00
2026-10-14 01:29:30 -04:00
2026-10-15 01:48:43 -04:00
2026-10-14 23:54:06 -04:00
2026-10-15 03:40:37 -04:00
2026-10-15 03:40:37 -04:00