You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2id="important">IMPORTANT <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></span></h2>
46
+
<p><strong>PyRadio</strong> may fail to install/update on some linux distros (mainly Ubuntu 23.04, Debian Testing and derivatives, etc.) due to a change to the underlined python installation.</p>
47
+
<p>If you face this situation, please refer to <ahref="pipx.html">this page</a> to resolve the problem.</p>
46
48
<h2id="table-of-contents">Table of Contents <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></span></h2>
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> If the theme selected in the “<em>Theme selection window</em>”, (or requested using the “<strong>-t</strong>” command line option), is in any way invalid, or is of the old format, <strong>PyRadio</strong> will fall-back to the “<strong>dark</strong>” theme and will display a relevant message.</p>
1628
1631
<p>The “<em>Theme selection window</em>” will remain open after activating a theme, so that the user can inspect the visual result and easily change it, if desired. Then, when he is satisfied with the activated theme, the window will have to be manually closed (by pressing “<strong>q</strong>” or any other relevant key - pressing “<strong>?</strong>” will bring up its help).</p>
1629
1632
<p>Pressing “<strong>SPACE</strong>”, will apply the theme and make it default, and pressing “<strong>c</strong>” will apply the theme and make it default and start a file watch function on the file, so that if the file changes, <strong>PyRadio</strong> will automatically update itself.</p>
1630
-
<h4id="alternative-main-window-border-color">Alternative Main Window border color</h4>
1631
-
<p>It is also possible to change the <strong>Main Window</strong> border color. This is a feature that has been requested and implemented, but not used by default.</p>
1632
-
<p>To provide an alternative border color, one would just add the following to a theme file:</p>
1633
-
<pre># Border color for the Main Window
1634
-
# (background color will come from Stations)
1635
-
Border #69a9a7</pre>
1636
-
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> This color will be used <strong>only</strong> when the trerminal supports more than 16 colors. This is because <strong>Pyradio</strong> already uses colors 0-15, and this border color will be declaread as color No 16.</p>
<p>After introducing CSS color themes, it has come to my attention that <strong>PyRadio</strong> will not display colors correctly when executed within specific terminals, <em>konsole</em>, <em>yakuake</em>, <em>deepin-teminal</em>, <em>qterminal</em> and <em>terminology</em>, just to name a few.</p>
1639
1635
<p>Now, I do not know whether this is because of the terminals themselves, python curses implementation or whatever, but that’s that.</p>
@@ -1700,6 +1696,13 @@ <h4 id="calculated-secondary-windows-color">Calculated secondary windows color</
1700
1696
<p>This is how this works: <strong>PyRadio</strong> will calculate the “<em>Stations background</em>” color perceived brightness, which will indicate whether the color is dark or light. Then depending on that, will add or subtract <strong>factor</strong> percent from its luminance value.</p>
1701
1697
<p>Finally, a check will be made to see if this color is close to “<em>Messages Border</em>” foreground color, and re-adjusted as possible.</p>
1702
1698
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> When a calculated background color is used, pressing “<strong>~</strong>” (<strong>tilde</strong>) will toggle it on and off. This setting will be valid until <strong>PyRadio</strong> terminates, or a new theme is loaded.</p>
1699
+
<h3id="alternative-main-window-border-color">Alternative Main Window border color</h3>
1700
+
<p>It is also possible to change the <strong>Main Window</strong> border color. This is a feature that has been requested and implemented, but not used by default.</p>
1701
+
<p>To provide an alternative border color, one would just add the following to a theme file:</p>
1702
+
<pre># Border color for the Main Window
1703
+
# (background color will come from Stations)
1704
+
Border #69a9a7</pre>
1705
+
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> This color will be used <strong>only</strong> when the trerminal supports more than 16 colors. This is because <strong>Pyradio</strong> already uses colors 0-15, and this border color will be declaread as color No 16.</p>
1703
1706
<h3id="user-themes">User themes</h3>
1704
1707
<p>Users can easiliy create their own themes, using for example <atarget="_blank" href="https://www.cssportal.com/css3-color-names/">CSS color names</a> as a resource, and</p>
**PyRadio** may fail to install/update on some linux distros (mainly Ubuntu 23.04, Debian Testing and derivatives, etc.) due to a change to the underlined python installation.
10
+
11
+
If you face this situation, please refer to [this page](pipx.md) to resolve the problem.
9
12
10
13
## Table of Contents
11
14
<!-- vim-markdown-toc Marked -->
@@ -51,12 +54,12 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
51
54
*[Displaying Station Info](#displaying-station-info)
52
55
*[Copying and pasting - Registers](#copying-and-pasting---registers)
53
56
*[PyRadio Themes](#pyradio-themes)
54
-
* [Alternative Main Window border color](#alternative-main-window-border-color)
*[CSS color themes restrictions](#css-color-themes-restrictions)
57
59
*[Secondary windows background](#secondary-windows-background)
58
60
*[Theme defined secondary windows color](#theme-defined-secondary-windows-color)
59
61
*[Calculated secondary windows color](#calculated-secondary-windows-color)
62
+
*[Alternative Main Window border color](#alternative-main-window-border-color)
60
63
*[User themes](#user-themes)
61
64
*[Converting old themes](#converting-old-themes)
62
65
*[Using transparency](#using-transparency)
@@ -945,20 +948,6 @@ The "*Theme selection window*" will remain open after activating a theme, so tha
945
948
946
949
Pressing "**SPACE**", will apply the theme and make it default, and pressing "**c**" will apply the theme and make it default and start a file watch function on the file, so that if the file changes, **PyRadio** will automatically update itself.
947
950
948
-
#### Alternative Main Window border color
949
-
950
-
It is also possible to change the **Main Window** border color. This is a feature that has been requested and implemented, but not used by default.
951
-
952
-
To provide an alternative border color, one would just add the following to a theme file:
953
-
954
-
```
955
-
# Border color for the Main Window
956
-
# (background color will come from Stations)
957
-
Border #69a9a7
958
-
```
959
-
960
-
**Note:** This color will be used **only** when the trerminal supports more than 16 colors. This is because **Pyradio** already uses colors 0-15, and this border color will be declaread as color No 16.
961
-
962
951
### Virtual terminal restrictions
963
952
964
953
After introducing CSS color themes, it has come to my attention that **PyRadio** will not display colors correctly when executed within specific terminals, *konsole*, *yakuake*, *deepin-teminal*, *qterminal* and *terminology*, just to name a few.
@@ -1062,6 +1051,20 @@ Finally, a check will be made to see if this color is close to "*Messages Border
1062
1051
1063
1052
**Note:** When a calculated background color is used, pressing "**~**" (**tilde**) will toggle it on and off. This setting will be valid until **PyRadio** terminates, or a new theme is loaded.
1064
1053
1054
+
### Alternative Main Window border color
1055
+
1056
+
It is also possible to change the **Main Window** border color. This is a feature that has been requested and implemented, but not used by default.
1057
+
1058
+
To provide an alternative border color, one would just add the following to a theme file:
1059
+
1060
+
```
1061
+
# Border color for the Main Window
1062
+
# (background color will come from Stations)
1063
+
Border #69a9a7
1064
+
```
1065
+
1066
+
**Note:** This color will be used **only** when the trerminal supports more than 16 colors. This is because **Pyradio** already uses colors 0-15, and this border color will be declaread as color No 16.
1067
+
1065
1068
### User themes
1066
1069
1067
1070
Users can easiliy create their own themes, using for example [CSS color names](https://www.cssportal.com/css3-color-names/) as a resource, and
0 commit comments