Dynamic UI on enigma2

serdeliuk

Senior Member
Messages
127
Hello,

It seems that the Enigma2 could be beautified after all.... I wonder why nobody did this till now, because any hardware could support this kind of UI.

So far i found how to change the button shape by changing the actual png.

<screen.....
<widget name="test_button" position="550,10" size="185,85" alphatest="on" />
.../screen>

....
self["test_button"] = Pixmap()
self["test_button"].instance.setPixmapFromFile("/usr/lib/enigma2/python/Plugins/Extensions/MS-SDR/img/btn_mem_pressed.png")
....
and / or
....
self["test_button"].instance.setPixmapFromFile("/usr/lib/enigma2/python/Plugins/Extensions/MS-SDR/img/btn_mem.png")
....

So, funny, if this is possible why the Enigma2 is so boring, it is a lack of design / designers?

With above "self_made" pngs i can simulate visually a button when is pressed, with a "beautiful" design.

buttons.gif



This is actually an working plugin, pressing 0 through 9 on the remote control and taking screenshots, with grab, after every key press... :)

The screenshots where modified, cropped and exported with ffmpeg, as following

### create movie from image0.jpg to image9.jpg
ffmpeg -framerate 1/0.5 -i image%d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p buttons.mp4

### detect crop, output crop=1024:128:448:572
ffmpeg -i buttons.mp4 -vf "cropdetect=24:16:0" dummy.avi

### crop blackness, based on the previous output, look for crop after each frame
ffmpeg -i buttons.mp4 -vf "crop=1080:150:425:558" buttons_cropped.mp4

### convert to gif
ffmpeg -i buttons_cropped.mp4 buttons.gif

Best regards,


Marc
 

serdeliuk

Senior Member
Messages
127
I wonder if is there any trick to remove the title bar and borders.... are ugly, does anybody know that?

M
 
Top