Pyradio 0.8.9.21 introduced real color themes (CSS colors), so some of you asked on telegram how to create their own themes…
So, here it goes
First of all, go into your pyradio config folder and create the themes directory
cd ~/.config/pyradio
mkdir themes
Then create an empty file, using the name of the theme as you want it to appear in pyradio theme selection window…
I will create a theme called test, so
cd themes
touch test.pyradio-theme
Then open the file you just created in a text editor and paste the follwing:
# Main foreground and background
Stations #8b8198 #fbf1f2
# Playing station text color
# (background color will come from Stations)
Active Station #d57e85
# Status bar foreground and background
Status Bar #fbf1f2 #d57e85
# Normal cursor foreground and background
Normal Cursor #fbf1f2 #dcb16c
# Cursor foreground and background
# when cursor on playing station
Active Cursor #fbf1f2 #d57e85
# Cursor foreground and background
# This is the Line Editor cursor
Edit Cursor #fbf1f2 #bfb9c6
# Text color for extra function indication
# and jump numbers within the status bar
# (background color will come from Stations)
Extra Func #69a9a7
# Text color for URL
# (background color will come from Stations)
PyRadio URL #a3b367
# Message window borser foreground
# (background color will come from Stations)
Messages Border #a3b367
Save the file, and you are done! (well, not exactly )
Your test theme will appear in pyradio theme selection window (under User Themes) next time you press “t”.
Now, all you have to do is change the colors in the file, test and change again until you are satisfied!
Please do post here any themes you create for yourself; I would be more than happy to add them to pyradio.
Muchas gracias dear @sng you keep doing an amazing job and well these tweaky theme tutorial is just awesome & a plus ricing gift. Adding @napcok 's Mabox Colorizer will make simpler creating and modifying theme I am sure.
Many thanks again. ( as I promised in telegram channel I will try doing some themes and share with you all)
Just started customizing & ricing Pyradio following your clear instructions to tweak that template file you’ve provided previously; it is an easy peasy job using Colormenu & Colorizer tools:
The commit you are referring to is just for testing purposes for the files watch functionality.
The idea is to have a user theme that you can flag (probably pressing “c”, that would not only make it default but also start a thread to watch for date modification and/or size changes of the file the theme corresponds to.
So, yes, it will be available to the user.
In the configuration file you can have
theme = test
to load the default theme test at program startup, or
theme = *test
to load the default theme test at program startup and watch its file for changes
This way, any program can change the file, and pyradio will automatically load the new colors
This will not be the default behavior though, as it means that one more thread will be running all the time…
This way you can instract PyRadio to enable or disable transparency when it displays your theme!
“Obey config setting” means that the theme will look good both with transparency set to on and off… It will be transparent when transparency is on in the config, it will not be transparent when transparency is off in the config… This is the case of the “dark” and “dark_16_colors” themes, for example.
EDIT
This addition will break all themes for version 0.8.9.21, please do not use it with this version, just add it to the themes you will post here (the themes to be used with v. 0.8.9.22)!
I share & leave you my Minima.pyradio-theme below. I hope it is all running good I also left this same file document in Mabox Telegram Channel.
# Main foreground and background
Stations #1E2128 #C0D2C4
# Playing station text color
# (background color will come from Stations)
Active Station #d57e85
# Status bar foreground and background
Status Bar #fbf1f2 #D70F33
# Normal cursor foreground and background
Normal Cursor #1AA085 #93E5CC
# Cursor foreground and background
# when cursor on playing station
Active Cursor #fbf1f2 #D70F33
# Cursor foreground and background
# This is the Line Editor cursor
Edit Cursor #fbf1f2 #bfb9c6
# Text color for extra function indication
# and jump numbers within the status bar
# (background color will come from Stations)
Extra Func #69a9a7
# Text color for URL
# (background color will come from Stations)
PyRadio URL #1AA085
# Message window borser foreground
# (background color will come from Stations)
Messages Border #1AA085
Mabox users will soon have another toy related to PyRadio, because I have just started writing a PyRadio “module” for Colorizer - so far it can generate a theme from the colors of the wallpaper: dark or light.
I am just starting to script single color replacement …
Also comming soon;)