Skip to content

feat: Windows hover card 80% of the screen wide - #441

Merged
ataturhan21 merged 1 commit into
mainfrom
feat/440-card-80pct
Nov 30, 2026
Merged

ataturhan21 merged 1 commit into
mainfrom
feat/440-card-80pct

Conversation

@ataturhan21

Copy link
Copy Markdown
Member

Makes the Windows hover card 80% of the screen wide, replacing the half-screen card from #433.

What changes

  • Painter.CardWidth = round(0.8 x work-area width, away from zero). The 600 DIP minimum (CardMinW) and the 200 DIP floor are gone; only the clamp to the work area less its margins stays (it never triggers at 80%). Height is still content-driven under the 90% cap.
  • ZOrder.CardX already clamps the card's left edge into the work area; a new check covers an 80% card under a pill at either edge.
  • Text: a test-only hook in Painter.Text records every string cut short by its box. New checks assert that no line in the top and hot fixtures is drawn with an ellipsis at both work areas, plus a positive control (a 512 DIP card must report cuts, so the check can see one).
  • DESIGN.md, README.md (card size, check count 200 -> 208), CHANGELOG.md (Unreleased) and code comments now say 80%.

Measured (scale 1; the bitmap adds a 14 DIP shadow margin on each side)

Work area (DIP) Card before -> after Bitmap before -> after
1536 x 912 (14" laptop) 768 -> 1229 796 -> 1257 px
2560 x 1392 (27" monitor) 1280 -> 2048 1308 -> 2076 px

On the laptop the wider left column also lets the 24-hour chart keep its big 132 DIP frame (was 90 DIP). Every list still shows 5 lines; the Dell layout is unchanged apart from the width.

Platforms

Windows only. AGENTS.md says a change "usually" needs its 2 counterparts, but DESIGN.md says "GNOME and macOS keep their own card sizes" and #433 changed only the Windows size, so the GNOME and macOS cards are untouched.

Checks

  • sh tools/verify.sh privacy windows-core: PASS privacy; 208 passed, 0 failed (was 200).

Fixes #440

@ataturhan21
ataturhan21 merged commit b36a484 into main Nov 30, 2026
5 checks passed
@ataturhan21
ataturhan21 deleted the feat/440-card-80pct branch November 30, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows hover card: 80% of the screen wide

1 participant