New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ServiceInfo] Do not embed color in python code #2256
Conversation
Instead, let skins to determine what color to use.
What for? |
No, you are totally wrong! The color in the "ecm info" tab will now be the same as in the "pids info" tab. And this color is what is defined for the "infolist" in the skin. Read the python code before commenting the next time. Thanks. |
https://github.com/OpenPLi/enigma2/search?q=infolist&unscoped_q=infolist ecm info one line color? |
I don't understand what you mean by this... Whatever color is selected by the skin for the |
What is incomprehensible here? |
Even if a skin does not set a color for infolist explicitly, it gets a default color like every skin element. After my change all possible infolist elements like "pids", "ecm info" and "tuner values" will have that same color defined in the skin. Why do we need to force all skins to have the ecm info displayed in orange color? There is no reason for that. So remove the hard-coded color from the python code! |
Can you post some screenshots so I can see what’s meant here? |
When you want the skin decides the color or overrules the default do something with attributes. |
OK, I'll add an attribute to the code, so it can change colors |
Indeed the skin cannot change the color code that highlights the current 'chosen' ECM. So this change request makes no sense. I agree it should be skinnable. But then we need something to arrange with parameters/attributes that forward the color to python. |
Believe it or not I had never notice that multiple ecm pids could be listed in that screen. I always thought that only the active pid is displayed there. Now I understand the reason behind the hard-coded color. |
@littlesat I can make it read a color from the skin instead of using a hard-coded color from the python. But, I think it would be better to indicate the active ecm pid using a word (e.g. "active") instead of using a different color. It looks much simpler. I don't see why a different color is needed. What do you think??? |
In service info, when pressing the green button, the ecm info is showing in yellow/orange color. This is because the color in embedded in the python code. So, instead of setting a color in the code, we should allow skins to determine what color to use.
After this change, skins will continue to work perfectly fine and the ecm info will be displayed in whatever color is already selected for the service info screen.