Skip to content

Inherit skin names from base screen classes - #4

Merged
Belfagor2005 merged 1 commit into
mainfrom
feature/inherited-skin-names
Nov 29, 2026
Merged

Belfagor2005 merged 1 commit into
mainfrom
feature/inherited-skin-names

Conversation

@Belfagor2005

Copy link
Copy Markdown
Collaborator

Summary

A screen class also looks up the skin names its base classes set in their __init__: for example every Setup subclass (AutocamSetup, NetworkWiFiSetup, ...) appends "Setup". This adds those inherited names to skinNames, after the class's own names, so the order enigma2 tries them is kept.

Why

OpenSkin Designer's new "Screen Coverage" command uses skinNames to tell which screens a skin defines. Without the inherited names, every Setup subclass was reported as having no skin even when the skin defines Setup.

Default skins checked against their own image (non-plugin screens):

Skins Screens with no skin, before After
openATV data/ 137 44
OpenPLi data/skin.xml 26 17

The remaining ones are mostly base classes and invisible helper screens (ChannelSelectionBase, Globals, dummyScreen).

Test plan

  • Local build of all 5 catalogs
  • Coverage run on the default skins of openATV and OpenPLi
  • Workflow run on this pull request
  • After merge: run the workflow from main

Generated by Claude Code

A screen class also looks up the skin names its base classes set in their
__init__ (for example every Setup subclass appends "Setup"), so add them to
skinNames after the class's own names.

Without them a coverage check treats those screens as having no skin at all:
the default skins of openATV went from 137 screens with no skin to 44, and
OpenPLi from 26 to 17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVc11N8zrA7gm5kdSWgpH9
@Belfagor2005
Belfagor2005 merged commit 1d3a343 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