Repository navigation
Collect skin attributes read by Python widgets - #3
Merged
Merged
Conversation
Add components.widgetAttributes to each catalog: the attribute names that applySkin() methods in components, addons and plugins compare with, including the dispatch style with one nested function per attribute (GraphMultiEPG). Without them a skin checker reports false warnings for attributes such as pixmaps (MultiPixmap), foregroundColors (MultiColorLabel) or EntryBackgroundColor (GraphMultiEPG). Checking the default skins of OpenPLi against the OpenPLi catalog drops from 47 warnings to 8, all of them real (zposition written in lower case). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EVc11N8zrA7gm5kdSWgpH9
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.
Summary
Adds
components.widgetAttributesto every catalog: the skin attributes read by Python widgets in theirapplySkin()method (components, addons, plugins), on top of the onesskin.pyhandles.Both styles are recognized:
if attrib == "pixmaps":,match attrib:);def EntryBackgroundColor(value):, used by GraphMultiEPG).Converters are skipped, since they take arguments, not attributes.
Why
OpenSkin Designer's new "Check Skin Against Image" command uses the catalog to report attributes an image does not know. Without these names it reported false warnings for
pixmaps,foregroundColors,EntryBackgroundColorand similar.Default skins of each image, checked against their own catalog:
data/vs OpenPLizpositionin lower case)data/vs teamBlueThe
.mdsummary of each catalog gets a new "Attributes read by Python widgets" section.Test plan
catalogsbranch gets the new fieldGenerated by Claude Code