Jump to content


Photo

[WIP] PLi-DarkOS Skin


  • Please log in to reply
2057 replies to this topic

Re: [WIP] PLi-DarkOS Skin #821 Tech

  • Forum Moderator
    PLi® Core member
  • 14,944 posts

+488
Excellent

Posted 13 December 2023 - 08:19

We do the same with the openwebif, we remove all unnecessary picons and png’s so only the box-related items will be left.

Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Geplaatste afbeelding button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: [WIP] PLi-DarkOS Skin #822 DimitarCC

  • PLi® Contributor
  • 1,583 posts

+71
Good

Posted 13 December 2023 - 08:38

Ok. Like @Huevos suggested i propose the logos to be in /etc/enigma2 and the names to be boxmodel.svg and boxlogo.svg.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #823 littlesat

  • PLi® Core member
  • 57,388 posts

+708
Excellent

Posted 13 December 2023 - 10:41

Having them in /etc/enigma2 is I think not a good idea (settings belong to there and no pictures)...

Better to let them land in a subfolder on /usr/share/enigma2/ something like the rc_models.... but then in another subfolder... e.g. box_model... (without s)... so /usr/share/enigma2/box_model

And put the skin specific in the skin and use a renderer to decide to display the box specific one when it exists...

Then we can put the box specific svgs somewhere on github. Could be a shared location as I hate forking.... So also here a structure is welcome... 


Edited by littlesat, 13 December 2023 - 10:47.

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


Re: [WIP] PLi-DarkOS Skin #824 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 10:51

They should be in /usr/share/enigma2, they are not configuration files.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #825 DimitarCC

  • PLi® Contributor
  • 1,583 posts

+71
Good

Posted 13 December 2023 - 11:05

OK. But the idea was to not have any python files in the skin. Then that renderer have to be in core enigma files...


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #826 Huevos

  • PLi® Contributor
  • 4,747 posts

+167
Excellent

Posted 13 December 2023 - 11:44

They should be in /usr/share/enigma2, they are not configuration files.

This is a misunderstanding. I said "Just put a logo on the box, e.g. in /usr/share/enigma2/skin_default/logo.png". /usr/share/enigma2 would also work.



Re: [WIP] PLi-DarkOS Skin #827 littlesat

  • PLi® Core member
  • 57,388 posts

+708
Excellent

Posted 13 December 2023 - 11:52

Then I prefer a subfolder in there.... /usr/share/enigma2/box_model or something like that... (when you compare it with rc_models)


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


Re: [WIP] PLi-DarkOS Skin #828 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 12:17

I have no preference.

 

Where is the logic to determine which image is required? In the python code? Or in the build recipe (and only install one image file with a generic name)?

 

If in the code, we need to add logic to the recipe to remove all unwanted images, like we do for the WebIf.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #829 DimitarCC

  • PLi® Contributor
  • 1,583 posts

+71
Good

Posted 13 December 2023 - 12:21

Keep in mind that images have to be svgs since png have huge quality loss when they are scaled down.

Or have to be decide the size of them but that will not give flexibility to the skinner...


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #830 littlesat

  • PLi® Core member
  • 57,388 posts

+708
Excellent

Posted 13 December 2023 - 12:35

Which image should appear should be arranged in the build process.... (and partly in a renderer when the icon does not exist that a default is shown)


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


Re: [WIP] PLi-DarkOS Skin #831 DimitarCC

  • PLi® Contributor
  • 1,583 posts

+71
Good

Posted 13 December 2023 - 12:44

So renderer have to be in base code....


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #832 Huevos

  • PLi® Contributor
  • 4,747 posts

+167
Excellent

Posted 13 December 2023 - 13:14

Where is the logic to determine which image is required? In the python code? Or in the build recipe (and only install one image file with a generic name)?

 

If in the code, we need to add logic to the recipe to remove all unwanted images, like we do for the WebIf.

Has to be done in the build  so each box has one image for model and one for brand.

 

So should work pretty much the same as the rc.png image for the help screens and wizards.
 



Re: [WIP] PLi-DarkOS Skin #833 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 13:49

Don't see that being a problem.

 

The only challenge will be the fact we still don't have any boxinfo, and build a 1:N between image and box model, so displaying the correct image in all cases will be complex without some runtime code.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #834 Huevos

  • PLi® Contributor
  • 4,747 posts

+167
Excellent

Posted 13 December 2023 - 14:19

Don't see that being a problem.

 

The only challenge will be the fact we still don't have any boxinfo, and build a 1:N between image and box model, so displaying the correct image in all cases will be complex without some runtime code.

 

Let's not complicate things. You don't need boxinfo. If the file is in /usr/share/enigma2 it will be found on a SCOPE lookup. The file will be named the same on all boxes irrespective of model, brand, distro.


Edited by Huevos, 13 December 2023 - 14:22.


Re: [WIP] PLi-DarkOS Skin #835 littlesat

  • PLi® Core member
  • 57,388 posts

+708
Excellent

Posted 13 December 2023 - 14:50

So renderer have to be in base code....-> I think always... at least never in the skin package as they can 'eat' each other when you have e.g. two skins that have the same filenames... but e.g. different code insider and/or you remove a skin and the renderer is gone.

 

When they get too much maybe put in a dependency package....  but this can be considered later... when it is really getting to much... and special...


Edited by littlesat, 13 December 2023 - 14:52.

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


Re: [WIP] PLi-DarkOS Skin #836 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 15:04

Let's not complicate things. You don't need boxinfo. If the file is in /usr/share/enigma2 it will be found on a SCOPE lookup. The file will be named the same on all boxes irrespective of model, brand, distro.

 

You missed my point.

 

We build one image for lets say the Zgemma H9. So we can only include one box zvg. But Zgemma has multiple H9 models. For the WebIf, we include all images, and determine which one is displayed at runtime using box detection.

 

OE-A has a 1:1 between build and box, so those images don't have that problem.
 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #837 Huevos

  • PLi® Contributor
  • 4,747 posts

+167
Excellent

Posted 13 December 2023 - 15:26

So how do you show the correct model in the about screen?

 

The whole point was that the was selected by the build and the box didn't have to do anything... but if PLi build is not capable of that what do you suggest?



Re: [WIP] PLi-DarkOS Skin #838 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 15:46

If the about screen shows detailed model info, it is because of runtime code in systeminfo. The same happens in Owif.

 

My suggestion is that someone implements a compatible boxinfo as soon as possible, like yesterday...

 

I'm willing to cooperate with whoever does the Python side, and deal with the OE side of things ( as that will work differently from how OE-A does it ).

I was planning to do this, but I don't have the time and the energy for it. And we need to have it anyway, if we want to switch to the new WebIf.

 

We need runtime code in bash that can complete the boxinfo data at first boot, and can also rename the correct box model image.


Edited by WanWizard, 13 December 2023 - 15:58.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #839 DimitarCC

  • PLi® Contributor
  • 1,583 posts

+71
Good

Posted 13 December 2023 - 15:58

Well we all also dont have much spare time... We are doing all this in the free time...

Isnt there in PLi team someone that have time to do this? We are not even members of PLi team so not expect to share much time on it ;)


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #840 WanWizard

  • PLi® Core member
  • 70,775 posts

+1,830
Excellent

Posted 13 December 2023 - 15:59

It wasn't directed at you. Or Huevos... ;).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users