¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

No-code styles customization for R1CBU/R2RFE firmware


 

Inspired by wicknix's color changes, I came up with the idea of allowing anyone to customize color, styles, palette, etc by just editing (say with notepad) a simple text file in the DATA partition.
The file is called 'styles_custom.txt', and it uses a very simple key = value format like this:
?
# test styles customization
# Franco Venturi K4VZ
# Sun Apr  6 10:00:25 AM EDT 2025
wf_palette   = gauss
#bg_color     = 0x27313a
bg_color     = 0x56a346
btn_bg_img   = images/btn_dark.bin
msg_bg_img   = images/btn_dark.bin
clock_bg_img = images/top_short_dark.bin
info_bg_img  = images/top_short_dark.bin
?
The above example just changes the background color to green, but you can see how it works (lines beginning with '#' are just comments and are ignored).
This is mostly still a proof of concept, so I just put a dozen or so settings from the 'simple' style in it, but the possibilities are endless.
For instance you can even customize your waterfall palette by creating an entry called 'wf.palette' with a list of 256 values (see the file 'styles_custom_palette.txt' for an example, where I just reverted the list of the colors to create a 'negative' waterfall palette, just for fun).
?
For those who want to use a more organized way of managing those settings, I also created a simple Python script called 'toml2txt.py' that you can use to convert from a file in TOML format () to 'styles_custom.txt'.
?
All these example styles customizations and the Python script are here:
?
An SD card image based on the 'x6100_gui' version by wicknix plus the styles customizations code I wrote is available here:
?
Pease let me know what other settings you would like to be able customize or other enhancements you would like to see.
?
Give it a try and have fun!
?
73,
Franco K4VZ
?
?


 

Hello!
?
I change the appearance of my firmware for TRX Brass using Python scripts -
?
73!


 

On Wed, Apr 9, 2025 at 07:54 AM, Franco Venturi wrote:
Very cool! Thanks.
?
I¡¯d also like to create a new ¡°full¡± custom theme, but i can¡¯t figure out how to extract the existing .bin images (like btn_dark.bin) so i can get their dimensions. I found an online image converter to create the .bin images from jpeg/png/etc however. Maybe the answer is right in front of my face and i¡¯m over looking it. Anybody have any ideas?
?
Cheers


 

I attached archive with png images and script to convert them to bin files. This script add some dithering to avoid lines on gradients.
--
Georgy // R2RFE


 

Awesome. Thank you sir.


 

Oleg,
I really like what you did with the Brass TRX software and I saw that you even wrote your own Python bindings for LVGL and the Brass TRX functions. That's awesome work!
?
My goal is a little different; I would like for anyone to be able to customize the 'look-and-feel' of the X6100 GUI, even if they don't know how to write code.
This is why I thought the easiest thing would just to create a simple text file in the DATA dos partition, so that anyone can make changes with say notepad (or vi), and try them very quickly.
I hope this approach will open new opportunities to improve the X6100 from anyone who wants to give it a try.
I wrote this enhancement so people can share their ideas, what they tried, perhaps share their config files with others and just have fun doing it.
?
73,
Franco


 

On Thu, Apr 10, 2025 at 04:44 AM, Franco Venturi wrote:
I wrote this enhancement so people can share their ideas, what they tried, perhaps share their config files with others and just have fun doing it.
This does not contradict. Nothing prevents you from implementing "simple config files" through Python scripts. Like here, for example https://github.com/strijar/brass_gui/blob/main/rootfs/usr/share/brass/python/gui_const.py Scripts have many advantages - you can change not only the appearance, but also modify/expand the functionality (for example, automatically change the color scheme depending on the time of day). The sooner you think about it, the easier it will be later. Especially since you do not need to implement from scratch. You can easily use my developments.
?
I am currently leading my project in the direction that it would be possible to create firmware for any Linux-based transceiver (working title OpenTRX). Separate the specifics of working with hardware and logic/GUI as much as possible. And Python scripts help a lot with this.
?
Another point. Python is a very popular language now. Finding a Python developer is much easier than embedded. Even if he is not a radio amateur, he can be very helpful in developing such a project.
73!


 

This is great! Thanks to all of you. I figured the X6100 was at a dead end, but with all the gui changes it feels like a new device. With all the tariff nonsense, I can't see upgrading to a new transceiver any time soon, so thanks again.? ?


 

On Thu, Apr 10, 2025 at 02:47 PM, W8ISM wrote:
With all the tariff nonsense, I can't see upgrading to a new transceiver any time soon
You can try to build an improved "analogue of X6100" TRX "Brass" - this is a completely open project. All schemes and firmware are open.
You can stretch the assembly for some time, and it is not so painful financially (;
?
73!


 

Here¡¯s a simple flat gray theme i made with Franco¡¯s new styles feature. Just place the attached styles_custom.txt in your DATA partition of SD card and restart the GUI to activate it.
?


 

Thank you very much for the work you have done.? That is to all of the contributors.
?
Can you clarify how you restart the GUI?? Is it just restarting the radio or do I need to do something else?? I'm just playing around with the customization just because I can because of your work so I'm just curious.
?
Thanks in advance.


 

To restart the GUI without rebooting (while running the R1CBU / R2RFE firmware) requires just holding the little ¡°lock¡± button down for a few seconds until you hear the relay click and then the screen will refresh/restart.
?
Cheers


 

I love the colors but when working FT8, the SWR and ALC lines are superimposed on the waterfall.? Is there a way to change the settings so this does not happen?? I took off all the magnifcations in settings and it does not change it.? I've posted pictures of both the original and the Color-Mod versions.


 

Interesting. I¡¯m attaching another styles_custom.txt with a small change. Can you test it for me and see if that fixes it for you? Thanks.


 

That worked - thanks.??


 

Awesome. Thanks for testing it.