Repository navigation
Inherit skin names from base screen classes - #4
Merged
Merged
Conversation
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
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
A screen class also looks up the skin names its base classes set in their
__init__: for example everySetupsubclass (AutocamSetup,NetworkWiFiSetup, ...) appends"Setup". This adds those inherited names toskinNames, after the class's own names, so the order enigma2 tries them is kept.Why
OpenSkin Designer's new "Screen Coverage" command uses
skinNamesto tell which screens a skin defines. Without the inherited names, everySetupsubclass was reported as having no skin even when the skin definesSetup.Default skins checked against their own image (non-plugin screens):
data/data/skin.xmlThe remaining ones are mostly base classes and invisible helper screens (
ChannelSelectionBase,Globals,dummyScreen).Test plan
Generated by Claude Code