pyradio theming
See original GitHub issueThis is a call to help, primarily intended for users @edunfelt and @OpenBSDGuy who have submitted personal themes to pyradio (here https://github.com/coderholic/pyradio/issues/60#issuecomment-833287617 and here https://github.com/coderholic/pyradio/pull/158), and any other user who has created a personal theme for pyradio
I have started working on pyradio theming; trying to use CSS colors instead of color numbers. This is still at a very early stage and I would like to see your color settings based on your palette 😃
So, can you please downaload this script: https://gist.github.com/s-n-g/eefd2307ae9713c7a6c707c096995077
and execute it, like so
python pyradio_themes.py [path to your theme]
This will create a file ~/pyradio_themes.log
; can you please post it here?
Let me remind you these are the themes submittted:
pink_by_edunfelt.pyradio-theme
PyRadio URL = 2,0
Messages Border = 2,0
Status Bar = 0,1
Stations = 7,0
Active Station = 1,0
Active Cursor = 0,1
Normal Cursor = 0,3
Edit Cursor = 0,8
classic_by_obsdg.pyradio-theme
PyRadio URL = 0,0
Messages Border = 15,0
Status Bar = 16,4
Stations = 7,0
Active Station = 1,0
Active Cursor = 0,1
Normal Cursor = 0,4
Edit Cursor = 7,4
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:19 (8 by maintainers)
Top GitHub Comments
Hi guys! I have just pushed the changes to my test repo, here’s how you get it; just fork
https://github.com/s-n-g/pyradio
then
git clone
to your forkand finally
Now, about the themes…
@edunfelt’s theme should be correctly converted; I already knew the palette she was using when she created the original theme.
@OpenBSDGuy 's theme is different; I do not know the original palette used, so I had to guess the colors from the color value and screenshot, so the theme may be a bit off (the “red” color, for example, and the URL color, for sure). BTW, do you still get the first line’s background same as the status bar background?
I have included the “converted” themes for you to test, plus a pastel_based theme I’ve put together
(too dim I think, but I still like the colors), and two themes based on https://github.com/morhetz/gruvbox (requested by @bnsv in https://github.com/coderholic/pyradio/issues/116#issuecomment-743735344, a long time ago).@bnsv, if you are still interested, please do have a look at the gruvbox_* themes and PR if needed 😄
The themes will appear under “System Themes”, so you can edit them as needed and create a PR
Things to consider:
I believe I have fixed this issue,
but I have found at least one terminal (roxterm on MX Linux Fulubox) which still does not behave😄So, if you do find a such terminal, please do report!
TERM=xterm-256color
in this case.The same goes if
TERM
not set, orTERM=screen-*
The program will display current
TERM
value in stdout (you can see it after you close it)CSS3 Color Names is a valuable resource…
I’ll be updating this repo with whatever fixes I have, until I get a reply 😉
Hi again guys!
I have just pushed new changes to
master
.The way to get the changes is this. Get into your fork
(hope I got these instructions right…)
Now for the changes…
TERM is set to
xterm-256color
if original TERM istmux*
pyradio
is now watching a theme calledauto
for changesAny changes done to this theme (files is
~/.config/pyradio/themes/auto.pyradio-theme
) will be immediately applied topyradio
This is just a “test” condition for the program; it would normally allow the user to set the file to “watch”
You can use the following script to see all theme 😉
This will simulate a mechanism (like
base16
) that will update a given watched pyradio themeSo @edunfelt I hope this would be enough for you to test the creation of a base16 template?
I mean, if
~/.config/pyradio/themes/auto.pyradio-theme
is set to be the output of a base16 theme based on your template, we can just test the behavior of the whole thingWhat do you think?