Skip to content

Collect skin attributes read by Python widgets - #3

Merged
Belfagor2005 merged 1 commit into
mainfrom
feature/catalog-widget-attributes
Nov 29, 2026
Merged

Belfagor2005 merged 1 commit into
mainfrom
feature/catalog-widget-attributes

Conversation

@Belfagor2005

Copy link
Copy Markdown
Collaborator

Summary

Adds components.widgetAttributes to every catalog: the skin attributes read by Python widgets in their applySkin() method (components, addons, plugins), on top of the ones skin.py handles.

Both styles are recognized:

  • comparisons on the attribute name (if attrib == "pixmaps":, match attrib:);
  • one nested function per attribute (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, EntryBackgroundColor and similar.

Default skins of each image, checked against their own catalog:

Skins Before After
OpenPLi data/ vs OpenPLi 47 warnings 8 warnings, all real (zposition in lower case)
teamBlue data/ vs teamBlue 56 warnings 10 warnings

The .md summary of each catalog gets a new "Attributes read by Python widgets" section.

Test plan

  • Local build of all 5 catalogs
  • Checker run on the default skins of OpenPLi, openATV and teamBlue
  • Workflow run on this pull request
  • After merge: run the workflow from main so the catalogs branch gets the new field

Generated by Claude Code

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
@Belfagor2005
Belfagor2005 merged commit e163aed into main Nov 29, 2026
1 check passed
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