Skip to content

A smoother look for the stable line (0.11.0) - #21

Merged
usermaneGermane merged 1 commit into
release-0.xfrom
ui-polish-0x
Nov 10, 2026
Merged

usermaneGermane merged 1 commit into
release-0.xfrom
ui-polish-0x

Conversation

@usermaneGermane

Copy link
Copy Markdown
Owner

Why

The same look as 3.0.0-alpha.4 / 1.0.0-alpha.4 (merged, approved by the owner), for the stable line.

What changed

  • Smoothed corners everywhere. theme.py forced polygon corners, which Tk draws in pixel steps. Corners are now drawn CustomTkinter's preferred way. Measured cost: about 7 ms more per list row (rows are still built in slices, so the window stays responsive).
  • Sign-in backdrop redrawn. The discs, padlock and key are painted with Pillow at 3x and scaled down, so their edges are smooth. The padlock has a rounded body and a keyhole instead of a plain square. Without Pillow the old canvas drawing is used.
  • Entry header. The coloured band shrank to its tile's height, so the tile touched the band's edges (pack_propagate on a frame laid out with grid). It keeps its 112 px now.
  • Add button stays an even number of pixels wide; at odd widths a smoothed corner steps by one pixel.

Checked

  • tests/test_look.py (8 tests) fails when polygons are forced back, the padlock is squared, or the smoothing is removed (3/3).
  • Full test suite passes locally.
  • Windows: the 2.x Lab flows pass (8/8, 13/13, 15/15); screenshots of every 2.x dialog checked.
  • Linux: not viewed on a Linux screen here; the CI smoke screenshots show it.

🤖 Generated with Claude Code

https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH

The look of 3.0.0-alpha.4 / 1.0.0-alpha.4, for the stable line. Three fixes:

- theme.py forced CustomTkinter to draw rounded corners as polygons,
  which are not smoothed at all. It now draws them its preferred way
  (smoothed font glyphs). Cost, measured: about 7 ms more per list row.
- The sign-in backdrop (discs, padlock, key) was drawn straight on a Tk
  canvas: no smoothing, and the padlock was a plain square. It is now
  painted larger with Pillow and scaled down; the padlock has a rounded
  body and a keyhole. The plain canvas drawing stays as the fallback.
- The coloured header of an entry shrank to its tile's height
  (pack_propagate on a frame laid out with grid), so the tile touched the
  header's edges. It keeps its 112 px now.

Also: the wide Add button is kept at an even width (smoothed corners step
by one pixel at odd widths).

tests/test_look.py guards the first two; it fails when polygons are
forced back, the padlock is squared, or the smoothing is removed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH
@usermaneGermane
usermaneGermane merged commit 65cf752 into release-0.x Nov 10, 2026
6 checks passed
@usermaneGermane
usermaneGermane deleted the ui-polish-0x branch November 10, 2026 21:06
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.

1 participant