Repository navigation
A smoother look for the stable line (0.11.0) - #21
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
theme.pyforced 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).pack_propagateon a frame laid out withgrid). It keeps its 112 px now.Checked
tests/test_look.py(8 tests) fails when polygons are forced back, the padlock is squared, or the smoothing is removed (3/3).🤖 Generated with Claude Code
https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH