Repository navigation
Plugins draw their pictures at the block's exact size (M7) - #247
Merged
Merged
Conversation
system_info draws its bars and icons at the size of their block (epdlib content_size) instead of drawing them large and letting the layout shrink them, so their edges stay sharp. dec_binary_clock, splash_screen and xkcd_comic use content_size instead of the whole box, so they no longer depend on their block having no padding. epdlib pin moved to 4633fca. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
txoof
approved these changes
Oct 7, 2026
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.
Closes #246
What changed
epdlib now tells a plugin the exact size of a block's drawing area (
content_size, txoof/epdlib#89). Plugins that draw their own pictures now use it:content_sizeinstead of the whole block box (and, in splash_screen, its own padding sum). They no longer depend on their block having no padding and no border. Their pictures are unchanged: all their reference images still match.docs/writing-plugins.md: new short section "Pictures the plugin draws itself".pyproject.tomlanduv.lock.Area
plugins/system_info, plugins/dec_binary_clock, plugins/splash_screen, plugins/xkcd_comic, docs (
docs/writing-plugins.md), ci (epdlib pin only), tests.Tests
fullandportraitlayouts); icons draw at any size (1, 7 and 240 pixels).test_barspasses the size now.uv run pytestpasses (1308 passed)uv run ruff check .passesImages
Black-and-white 7.5" screen, before (main) and after:
Review
Only txoof approves and merges this PR.
🤖 Generated with Claude Code