Skip to content

Commit 80a57fa

Browse files
committed
Version 0.7.2
1 parent f2fa946 commit 80a57fa

File tree

7 files changed

+299
-108
lines changed

7 files changed

+299
-108
lines changed

Changelog

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
2019-02-22 s-n-g
1+
2019-02-02 s-n-g
22

3-
* Theme support added (4 hardcoded themes)
4-
* Command line option -t (--theme) THEME added
5-
* Config option "theme" added
6-
* Key "T" will toggle transparency / use terminal's background color
7-
* Alt keyboard combinations will not be considered as ESCAPE char
3+
* Version 0.7.2
4+
* Themes support added (4 hardcoded themes).
5+
* Command line option -t (--theme) THEME added.
6+
* Config option "theme" added.
7+
* Key "T" will toggle transparency / use terminal's background color.
8+
* Alt keyboard combinations will not be considered as ESCAPE char.
9+
* Help / message windows use multiple colors.
10+
* Fixing a couple of minor bugs.
811

912
2019-02-10 s-n-g
1013

11-
* Version 0.7.1
14+
* Version 0.7.1
1215
* Avoiding curses layout breakage due to BROKEN PIPE errors
1316
* Start of playback detection implemented. This is done by
1417
detecting the players audio decoder info, which actually mean
1518
that playback is on. If not detected within a timeout value,
1619
failure to connect is presumed
1720
* Volume adjustment, saving and muting is inhibited before start
1821
of playback is detected
19-
* Playing a station in random order will not stop until a
20-
working station is acquired or another action is taken (e.g
21-
pressing a key)
22+
* Playing a station in random order will not stop until a
23+
working station is acquired or another action is taken (e.g
24+
pressing a key)
2225
* Stations name is limited to window width
23-
* Station title is validated before displayed
26+
* Station title is validated before displayed
2427

2528
2019-01-21 s-n-g
2629

README.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,23 @@ <h3 id="mplayer">MPlayer</h3>
219219
volstep=1
220220
volume=28</pre>
221221
<h2 id="pyradio-themes">PyRadio Themes</h2>
222-
<p><strong>PyRadio</strong> comes with 4 preconfigured (hardcoded) themes:</p>
222+
<p><strong>PyRadio</strong> comes with 4 preconfigured (hard coded) themes:</p>
223223
<ol type="1">
224224
<li><strong>dark</strong> (8 color theme). This is the appearance <strong>PyRadio</strong> has always had. Enabled by default.</li>
225-
<li><strong>light</strong> (8 color thmem). A theme for light terminal background settings.</li>
225+
<li><strong>light</strong> (8 color theme). A theme for light terminal background settings.</li>
226226
<li><strong>white_on_black</strong> or <strong>wob</strong> (256 color b&amp;w theme). A theme for dark terminal background settings.</li>
227227
<li><strong>black_on_white</strong> or <strong>bow</strong> (256 color b&amp;w theme). A theme for light terminal background settings.</li>
228228
</ol>
229+
<p>The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)</p>
230+
<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>
231+
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> If the terminal supports 8 colors only, 256 color themes will not be present in this window. Furthermore, if a 256 color theme is set as default (or requested using the “<strong>-t</strong>” command line option), <strong>PyRadio</strong> will silently revert to the “<strong>dark</strong>” theme.</p>
232+
<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>
233+
<p>The use of custom themes and theme editing is not implemented yet; theses are features for future releases.</p>
234+
<h3 id="using-transparency">Using transparency</h3>
235+
<p><strong>PyRadio</strong> themes are able to be used with a transparent background.</p>
236+
<p>Pressing “<strong>T</strong>” will toggle the transparency setting and save this state in <strong>PyRadio</strong>’s configuration file (transparency is off by default).</p>
237+
<p>Setting transparency on, will actually force <strong>PyRadio</strong> to not use its own background color, 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>
238+
<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>
229239
<h2 id="debug-mode">Debug mode</h2>
230240
<p>Adding the <strong><em>-d</em></strong> option to the command line will instruct <strong>PyRadio</strong> to enter <em>Debug mode</em>, which means that it will print debug messages to a file. This file will always reside in the user’s home directory and will be named <em>pyradio.log</em>.</p>
231241
<p>In case of a bug or a glitch, please include this file to the issue you will <a href="https://github.com/coderholic/pyradio/issues">open in github</a>.</p>

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,33 @@ Example:
312312

313313
## PyRadio Themes
314314

315-
**PyRadio** comes with 4 preconfigured (hardcoded) themes:
315+
**PyRadio** comes with 4 preconfigured (hard coded) themes:
316316

317317
1. **dark** (8 color theme). This is the appearance **PyRadio** has always had. Enabled by default.
318-
2. **light** (8 color thmem). A theme for light terminal background settings.
318+
2. **light** (8 color theme). A theme for light terminal background settings.
319319
3. **white_on_black** or **wob** (256 color b&w theme). A theme for dark terminal background settings.
320320
4. **black_on_white** or **bow** (256 color b&w theme). A theme for light terminal background settings.
321321

322+
The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)
323+
324+
Pressing "**t**" will bring up the *Theme selection window*, which can be used to activate a theme and set the default one.
325+
326+
**Note:** If the terminal supports 8 colors only, 256 color themes will not be present in this window. Furthermore, if a 256 color theme is set as default (or requested using the "**-t**" command line option), **PyRadio** will silently revert to the "**dark**" theme.
327+
328+
The *Theme selection window* 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 "**q**" or any other relevant key - pressing "**?**" will bring up its help).
329+
330+
The use of custom themes and theme editing is not implemented yet; theses are features for future releases.
331+
332+
### Using transparency
333+
334+
**PyRadio** themes are able to be used with a transparent background.
335+
336+
Pressing "**T**" will toggle the transparency setting and save this state in **PyRadio**'s configuration file (transparency is off by default).
337+
338+
Setting transparency on, will actually force **PyRadio** to not use its own background color, 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.
339+
340+
When the *Theme selection window* is visible, a "**[T]**" string displayed at its bottom right corner will indicate that transparency is *on*.
341+
322342
## Debug mode
323343

324344
Adding the ***-d*** option to the command line will instruct **PyRadio** to enter *Debug mode*, which means that it will print debug messages to a file. This file will always reside in the user's home directory and will be named *pyradio.log*.

pyradio.1

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
22
.\" This manual is freely distributable under the terms of the GPL.
33
.\"
4-
.TH PYRADIO 1 "February 2019"
4+
.TH PYRADIO 1 "March 2019"
55

66
.SH NAME
77
.PP
@@ -34,6 +34,8 @@ List of available playlists in config dir.
3434
List of available stations in a playlist.
3535
.IP \fB-scd\fR,\fB--show-config-dir\fR
3636
Print config directory location and exit.
37+
.IP \fB-t\fR\ \fITHEME\fR,\ \fB--theme\fR\ \fITHEME\fR
38+
Use specified \fITHEME\fR.
3739
.IP \fB-ocd\fR,\fB--open-config-dir\fR
3840
Open config directory with default file manager.
3941
.IP \fB-d\fR,\fB\ \--debug
@@ -340,6 +342,43 @@ volstep=1
340342
.br
341343
volume=28
342344

345+
.SH PYRADIO THEMES
346+
.PP
347+
348+
\fBpyradio\fR comes with 4 preconfigured (hard coded) themes:
349+
350+
.IP \fBdark\fR\ (8\ color\ theme)
351+
This is the appearance \fBpyradio\fR has always had. Enabled by default.
352+
.IP \fBlight\fR\ (8\ color\ theme)
353+
A theme for light terminal background settings.
354+
.IP \fBwhite_on_black\fR\ or\ \fBwob\fR \(256\ color\ b&w\ theme)
355+
A theme for dark terminal background settings.
356+
.IP \fBblack_on_white\fR\ or\ \fBbow\fR\ (256\ color\ b&w\ theme)
357+
A theme for light terminal background settings.
358+
359+
.PP
360+
The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)
361+
362+
Pressing "\fBt\fR" will bring up the \fITheme selection window\fR, which can be used to activate a theme and set the default one.
363+
364+
.IP \fBNote\fR
365+
If the terminal supports 8 colors only, 256 color themes will not be present in the \fITheme selection window\fR. Furthermore, if a 256 color theme is set as default (or requested using the "\fB-t\fR" command line option), \fBpyradio\fR will silently revert to the "\fBdark\fR" theme.
366+
367+
.PP
368+
The \fITheme selection window\fR 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 "\fBq\fR" or any other relevant key - pressing "\fB?\fR" will bring up its help).
369+
370+
The use of custom themes and theme editing is not implemented yet; theses are features for future releases.
371+
372+
\fBUSING TRANSPARENCY\fR
373+
374+
\fBpyradio\fR themes are able to be used with a transparent background.
375+
376+
Pressing "\fBT\fR" will toggle the transparency setting (it is \fIoff\fR by default) and save this state in \fBpyradio\fR's configuration file.
377+
378+
Setting transparency on, will actually force \fBpyradio\fR to not use its own background color, 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.
379+
380+
When the \fITheme selection window\fR is visible, a "\fI[T]\fR" string displayed at its bottom right corner will indicate that transparency is \fIon\fR.
381+
343382
.SH DEBUG MODE
344383
.PP
345384
Adding the \fB-d\fR option to the command line will instruct \fBpyradio\fR to enter \fBDebug mode\fR, which means that it will print debug messages to a file. This file will always reside in the user's home directory and will be named \fIpyradio.log\fR.
@@ -363,5 +402,11 @@ On \fBMac OS\fR, these file may be installed in \fI/usr/local/share/doc/pyradio\
363402

364403
.SH AUTHOR
365404
.PP
366-
\fBBen Dowling\fR\ \<\fIhttps://github.com/coderholic\fR\>
405+
\fBBen Dowling\fR\ \<\fIhttps://github.com/coderholic\fR\>,\ (Origianl\ author)
406+
.PP
407+
\fBKirill Klenov\fR\ \<\fIhttps://github.com/klen\fR\>,\ (2012)
408+
.PP
409+
\fBPeter Stevenson (2E0PGS)\fR\ \<\fIhttps://github.com/2E0PGS\fR\>,\ (2018)
410+
.PP
411+
\fBSpiros Georgaras\fR\ \<\fIhttps://github.com/s-n-g\fR\>,\ (2018-2019)
367412

pyradio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" pyradio -- Console radio player. "
22

3-
version_info = (0, 7, 1)
3+
version_info = (0, 7, 2)
44

55
__version__ = version = '.'.join(map(str, version_info))
66
__project__ = __name__

0 commit comments

Comments
 (0)