DIY your own Theme for your lovely X3
Nov 25, 2014 at 11:06 PM Post #348 of 678
1/ I notably like the small update in the "Browse By files" icon… #BashIsMyLife :)

2/ I just noticed that the layout into the Categories is messed up, the middle and bottom items are not of the correct size and are overlapping.


I added the update to the browse by files icon because I thought the main screen (The firmware files calls it the 'launcher', BTW) doesn't look like a terminal at all, so I fired up GIMP, used a retro font, turned off the antialiasing option and typed in ":/>$". Voila! :)

I have deployed a hotfix for the Categories menu! Turns out the resolution of the icons changed between versions and I didn't notice. I also cleaned up the battery indicator a bit. Still messy, but more visible now!

Lo and behold, links:
https://www.dropbox.com/s/8tlwbp127pj7ad1/x3.fw?dl=0

Enjoy!
 
Nov 26, 2014 at 2:13 PM Post #351 of 678
I added the update to the browse by files icon because I thought the main screen (The firmware files calls it the 'launcher', BTW) doesn't look like a terminal at all, so I fired up GIMP, used a retro font, turned off the antialiasing option and typed in ":/>$". Voila!
smily_headphones1.gif


I have deployed a hotfix for the Categories menu! Turns out the resolution of the icons changed between versions and I didn't notice. I also cleaned up the battery indicator a bit. Still messy, but more visible now!

Lo and behold, links:
https://www.dropbox.com/s/8tlwbp127pj7ad1/x3.fw?dl=0

Enjoy!

 
Thanks!
 
For the Categories, it is now correctly layed-out, I just notice that the colors when an item is highlighted are not the same depending on the icons (2 first on top and the last bottom are darker than the others).
 
For the why-M*soft-always-do-horrible-things format of BMP, I finally succeeded after one hour (!) to transform your picture in a version that works when the X3 starts up (I hope the BMP image will not be transformed by the forum system, seems not when I do preview => EDIT: it works, must just click on the small button "Original" in the gallery view):

 
The tricky things are (I do not know exactly if all of them are necessary, but I did all to be as close as possible as the one that works in official FW):
 
- the FILE SIZE field must be increased by 2 bytes and padding of 2 bytes must be added at the end of the file, to conform with the wonderful "RowSize" formula as visible in wikipedia
 
- the format must be 32-bit per pixel, instead of the usual 24-bit (your file was like this). I didn't found a basic picture program I had (tried XnView, Irfanview, Paint) that allow selecting the option to have this format, but I found that XnView tool Nconvert was doing the job:
nconvert -ctype rgb -32bits -o logo-converted.bmp logo.bmp
 
- then, in each pixel, there is now an extra byte after the 3 bytes for RGB. But NConvert generates it at FF... and apparently it must be zero instead of FF. So I changed this manually in Notepad++ (I do not detail the conversions first in cygwin with od and then after with xxd -r ...)
 
- I also changed the field "Image size", which was zero, to the same value as in FW version (02 b0 04 00)
 
And I just repack and tried on my X3, and now at last it works. Pfiuuuu...
tongue_smile.gif
 
 
Nov 26, 2014 at 10:47 PM Post #352 of 678
Thanks!

For the Categories, it is now correctly layed-out, I just notice that the colors when an item is highlighted are not the same depending on the icons (2 first on top and the last bottom are darker than the others).

- the format must be 32-bit per pixel, instead of the usual 24-bit (your file was like this). I didn't found a basic picture program I had (tried XnView, Irfanview, Paint) that allow selecting the option to have this format, but I found that XnView tool Nconvert was doing the job:
nconvert -ctype rgb -32bits -o logo-converted.bmp logo.bmp

- then, in each pixel, there is now an extra byte after the 3 bytes for RGB. But NConvert generates it at FF... and apparently it must be zero instead of FF. So I changed this manually in Notepad++ (I do not detail the conversions first in cygwin with od and then after with xxd -r ...)

- I also changed the field "Image size", which was zero, to the same value as in FW version (02 b0 04 00)

And I just repack and tried on my X3, and now at last it works. Pfiuuuu... :tongue_smile:  


Oh, right. I forgot to darken the colors on the top 2 selected icon graphics. I'll fix that sometime.

BMPs are really fussy...During one of my experimentations, I actually used the GNU Image Manipulation Program (GIMP) to export it in a 32-bit per pixel format. There was 3 RGBAX options, but I had no clue what they were supposed to be, so I chose to export it in A8R8G8B8, whatever that's supposed to mean. When I tried that on my X3, it actually displays the logo!...With a very screwed up color scheme. Black turns purple and green turns to some weird color combination...

Anyway, thanks for your work! I'll integrate your BMP into the next build, which will also fix the icon color inconsistencies,
 
Nov 26, 2014 at 11:57 PM Post #353 of 678
Oh, right. I forgot to darken the colors on the top 2 selected icon graphics. I'll fix that sometime.

BMPs are really fussy...During one of my experimentations, I actually used the GNU Image Manipulation Program (GIMP) to export it in a 32-bit per pixel format. There was 3 RGBAX options, but I had no clue what they were supposed to be, so I chose to export it in A8R8G8B8, whatever that's supposed to mean. When I tried that on my X3, it actually displays the logo!...With a very screwed up color scheme. Black turns purple and green turns to some weird color combination...

Anyway, thanks for your work! I'll integrate your BMP into the next build, which will also fix the icon color inconsistencies,

Oh god, I forgot to try GIMP (which is also installed on my PC…)
redface.gif

 
We should be able to choose 32bits = R8G8B8X8 or R8G8B8A8, which seems to be the format of the X3 and means Red on 8 bits, Green on 8 bits, Blue on 8 bits and then Alpha on 8 bits.
But this is apparently not available in my version of GIMP, I only have in 32 bits the two A8R8G8B8 or X8R8G8B8, which is somehow permutating/shifting the colors.
 
So, so far, we still do not know which Image Tool SW is really capable to directly write properly the logo.bmp expected by the X3.
If anybody knows...
(I remember the existence of ImageMagick, I need to try)
 
Nov 27, 2014 at 2:56 AM Post #356 of 678
Thanks for the update Sergio88, flashed it right away. Looks good 
etysmile.gif

 
Nov 27, 2014 at 1:18 PM Post #358 of 678
Quote:
Um, I've successfully created .bmp files for both X3 and X5 in Paint on my work PC. Pretty simple stuff. Just open the existing .bmp file, modify as desired, and save.

 
As explained before, it is not working for me (I just retried: opened original orange logo.bmp from FW 3.24b, draw a few kids-level lines rapidly, save, repack, flash => X3 has a black screen at boot).
Which version of Paint do you have? I have v6.1 on Win7.
And are you really talking about the file logo.bmp? (we do not have problems with the other image files, it is only this one).
 
And as far as I tried, ImageMagick is not working either: it is either writing 24 bits/pixel (like Paint), or if I put some options to have the alpha byte (i.e. 32 bits), it puts a color table and compression = 3 that seems to messed up everything for the X3 (maybe it will work in X5, don't know).
 
Nov 27, 2014 at 1:31 PM Post #359 of 678

Users who are viewing this thread

Back
Top