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="changelog">Changelog <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></span></h2>
207
207
<prestyle="height: 200px;">
208
208
209
+
2023-06-05 s-n-g
210
+
* version 0.9.2.7
211
+
* fixing a couple of install.py potential crashes
212
+
* fixing a theme download potential crash
213
+
* theme transparency will always be honored, in contrast
214
+
to global (config transparency setting)
215
+
209
216
2023-05-08 s-n-g
210
217
* version 0.9.2.6
211
218
* using pipx for installation on "externally-managed"
<p>Pressing “<strong>t</strong>” will bring up the <em>Theme selection window</em>, which can be used to activate a theme and set the default one.</p>
1645
1652
<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>
<p>For <strong>PyRadio</strong>, transparency means that a theme’s background actually disappears, effectively making it to display whatever is on the terminal (color/picture/transparency). The visual result depends on terminal settings and whether a compositor is running.</p>
1735
1742
<p>Not all themes look good when transparency is ON, so themes can now declare whether they want to use transparency or not. This is the “<strong>transparency</strong>” variable of the theme, which can have these values:</p>
1736
1743
<ul>
1737
-
<li>0 means that the theme looks better with no transparency (default)</li>
1738
-
<li>1 means that the theme looks better when transparency in ON</li>
1739
-
<li>2 means that the theme looks good either way, and the global transparency setting (defined in <strong>PyRadio</strong> config file) can be used.</li>
1744
+
<li>0 means that the theme will be opaque (no transparency)</li>
1745
+
<li>1 means that the theme will be transparent</li>
1746
+
<li>2 means that the theme looks good either way (the default), and the global transparency setting value (defined in <strong>PyRadio</strong> config file) will be used.</li>
1740
1747
</ul>
1741
-
<p>Please notice that this is just a hint; themes will obey the rules above, but transparency can still be toggled using “<strong>T</strong>” (capital “<strong>t</strong>”).</p>
1742
-
<p>When the “<em>Theme selection window</em>” is visible, a “<strong>[T]</strong>” string displayed at its bottom right corner will indicate that transparency is <em>on</em>.</p>
1748
+
<p>Please note that this behavior has changed since <strong>v. 0.9.2.7</strong>: theme transparency will always be honored, regardless of the global config value.</p>
1749
+
<p>This means that a theme which is set to be transparent (by its creator) will always be transparent, no matter if the global transparency is on or off. Similarly, if a theme is set to be opaque, it will be so regardless of the global transparency value.</p>
1750
+
<p>The only case when global transparency will come into play is when the theme does not care about it (theme transparency set to 2 - Obey config setting).</p>
1751
+
<p>When the “<em>Theme selection window</em>” is visible, a “<strong>[T]</strong>” string displayed at its bottom right corner will indicate that global transparency is “<em>ON</em>”.</p>
<p>Terminal users have been using all kind of software to change / update / adapt their terminal colors and palettes, such as <atarget="_blank" href="https://github.com/chriskempson/base16">bASE16</a>, <atarget="_blank" href="https://github.com/dylanaraps/pywal">pywal</a>, <atarget="_blank" href="https://github.com/deviantfero/wpgtk">wpgtk</a>, <atarget="_blank" href="https://github.com/lemnos/theme.sh">theme.sh</a>, to name a few.</p>
1745
1754
<p><strong>PyRadio</strong> is now able to “watch” a given theme for changes and update its colors whenever the theme changes.</p>
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -939,9 +939,9 @@ Messages Border #a3b367
939
939
940
940
# Theme Transparency
941
941
# Values are:
942
-
# 0: No transparency (default)
942
+
# 0: No transparency
943
943
# 1: Theme is transparent
944
-
# 2: Obey config setting
944
+
# 2: Obey config setting (default)
945
945
transparency 0
946
946
```
947
947
@@ -1096,13 +1096,17 @@ For **PyRadio**, transparency means that a theme's background actually disappear
1096
1096
1097
1097
Not all themes look good when transparency is ON, so themes can now declare whether they want to use transparency or not. This is the "**transparency**" variable of the theme, which can have these values:
1098
1098
1099
-
- 0 means that the theme looks better with no transparency (default)
1100
-
- 1 means that the theme looks better when transparency in ON
1101
-
- 2 means that the theme looks good either way, and the global transparency setting (defined in **PyRadio** config file) can be used.
1099
+
- 0 means that the theme will be opaque (no transparency)
1100
+
- 1 means that the theme will be transparent
1101
+
- 2 means that the theme looks good either way (the default), and the global transparency setting value (defined in **PyRadio** config file) will be used.
1102
1102
1103
-
Please notice that this is just a hint; themes will obey the rules above, but transparency can still be toggled using "**T**" (capital "**t**").
1103
+
Please note that this behavior has changed since **v. 0.9.2.7**: theme transparency will always be honored, regardless of the global config value.
1104
1104
1105
-
When the "*Theme selection window*" is visible, a "**[T]**" string displayed at its bottom right corner will indicate that transparency is *on*.
1105
+
This means that a theme which is set to be transparent (by its creator) will always be transparent, no matter if the global transparency is on or off. Similarly, if a theme is set to be opaque, it will be so regardless of the global transparency value.
1106
+
1107
+
The only case when global transparency will come into play is when the theme does not care about it (theme transparency set to 2 - Obey config setting).
1108
+
1109
+
When the "*Theme selection window*" is visible, a "**[T]**" string displayed at its bottom right corner will indicate that global transparency is "*ON*".
.\" This manual is freely distributable under the terms of the GPL.
4
4
.\"
5
-
.TH pyradio 1 "May 2023" pyradio
5
+
.TH pyradio 1 "June 2023" pyradio
6
6
7
7
.SH Name
8
8
.PP
@@ -1263,19 +1263,23 @@ Not all themes look good when transparency is ON, so themes can now declare whet
1263
1263
1264
1264
.RS5
1265
1265
.IP\fI0\fR3
1266
-
means that the theme looks better with no transparency (default)
1266
+
means that the theme will be opaque (no transparency).
1267
1267
1268
1268
.IP\fI1\fR3
1269
-
means that the theme looks better when transparency in ON
1269
+
means that the theme will be transparent.
1270
1270
1271
1271
.IP\fI2\fR3
1272
-
means that the theme looks good either way, and the global transparency setting (defined in \fBpyrRadio\fR config file) can be used.
1272
+
- 2 means that the theme looks good either way (the default), and the global transparency setting value (defined in \fBpyradio\fR config file) will be used.
1273
1273
1274
1274
.RE
1275
1275
.PP
1276
-
Please notice that this is just a hint; themes will obey the rules above, but transparency can still be toggled using "\fIT\fR" (capital "\fIt\fR").
1276
+
Please note that this behavior has changed since \fBv.0.9.2.7\fR: theme transparency will always be honored, regardless of the global config value.
1277
1277
1278
-
When the \fIThemeselectionwindow\fR is visible, a "\fI[T]\fR" string displayed at its bottom right corner will indicate that transparency is \fIon\fR.
1278
+
This means that a theme which is set to be transparent (by its creator) will always be transparent, no matter if the global transparency is on or off. Similarly, if a theme is set to be opaque, it will be so regardless of the global transparency value.
1279
+
1280
+
The only case when global transparency will come into play is when the theme does not care about it (theme transparency set to \fI2\fR- \fIObeyconfigsetting\fR).
1281
+
1282
+
When the \fIThemeselectionwindow\fR is visible, a "\fI[T]\fR" string displayed at its bottom right corner will indicate that global transparency is \fIon\fR.
Copy file name to clipboardExpand all lines: pyradio/config_window.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ class PyRadioConfigWindow(object):
78
78
'This is the equivalent to the -t , --theme command line option.', '|',
79
79
'If a theme uses more colors than those supported by the terminal in use, the "dark" theme will be used instead (but the "light" theme will be used, if the "light_16colors" theme was requested but not supported).',
80
80
'|', 'Default value = dark'])
81
-
_help_text.append(['If False, theme colors will be used.', '|',
81
+
_help_text.append(['This option will work when a theme\'s transparency value is set to 2 (Obey config setting), the default. Otherwise, it\'s up to the theme to handle transparency.', '|', 'If False, theme colors will be used.', '|',
82
82
"If True and a compositor is running, the stations' window background will be transparent.", '|', "If True and a compositor is not running, the terminal's background color will be used.", '|', 'Default value: False'])
83
83
_help_text.append(['Pyradio can calculate and use an alternative color for secondary windows.', '|', 'This option will determine if this color will be used (value > 0) or not (value = 0), provided that the theme used does not already provide it.', '|', 'The value of this option is actually the factor to darken or lighten the main (stations) background color.', '|', 'You can get more info on this at https://github.com/coderholic/pyradio#secondary-windows-background', '|', 'Valid Values: 0-0.2', 'Default value: 0'])
0 commit comments