Springen naar inhoud


Foto

Allowing skins to set the frontendInfo colors...


  • Please log in to reply
Er zijn 3 reacties in dit onderwerp

#1 nautilus7

  • Senior Member
  • 229 berichten

+6
Neutral

Geplaatst op 10 november 2019 - 13:20

Hi, I am trying to adjust the python code, so skins will be able to set the frontendinfo colors, via a skin parameter. I can't seem to make it work though.

 

My changes are here: https://github.com/n...c4b9cdc58a664ce

 

The hex2str color conversion function is taken from here: https://github.com/O...tEpgInfo.py#L72

 

In my test code, I can't even get the the print calls to work. I get no output from these print functions (in debug level), as if they are not there... Any ideas?


Veranderd door nautilus7, 10 november 2019 - 13:21


Re: Allowing skins to set the frontendInfo colors... #2 nautilus7

  • Senior Member
  • 229 berichten

+6
Neutral

Geplaatst op 21 november 2019 - 19:15

So, is there any enigma2 expert that can explain me why my code does not work?



Re: Allowing skins to set the frontendInfo colors... #3 littlesat

  • PLi® Core member
  • 56274 berichten

+691
Excellent

Geplaatst op 21 november 2019 - 20:31

Maybe consider to move the hex color converter somewhere on Tools...
The parsing and removal of attribs is weird. You only meed to remove the atteibs that are parsed and put in a self variabele.

Veranderd door littlesat, 21 november 2019 - 20:37

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Allowing skins to set the frontendInfo colors... #4 nautilus7

  • Senior Member
  • 229 berichten

+6
Neutral

Geplaatst op 23 november 2019 - 03:10

I found the problem. The parseColor was not needed because the colors are already parsed when reading them from the skin parameter.

 

I will send a PR tomorrow with your suggestions.




1 gebruiker(s) lezen dit onderwerp

0 leden, 1 bezoekers, 0 anonieme gebruikers