...
 
Commits (3)
mbclient (0.9.0) stable; urgency=low
* Bug fixes:
- set default color even in non-xmas mode
- prevent resized event to be re-entrant
- fix non-thread-safe UI
- thread Xmas re-creation works
* Features:
- xmas in its own thread and own file
- handle termination by signals
- use terminal-safe colors in xmas mode
- xmas snow fall
-- Alexis Pereda <alexis@pereda.fr> Wed, 13 Dec 2017 18:58:04 +0100
mbclient (0.8.9) stable; urgency=low
* xmas features
-- Alexis Pereda <alexis@pereda.fr> Mon, 11 Dec 2017 18:00:00 +0100
-- Alexis Pereda <alexis@pereda.fr> Mon, 11 Dec 2017 18:00:00 +0100
mbclient (0.8.8) stable; urgency=low
* fix AskWindow cursor position
* xmas features
-- Alexis Pereda <alexis@pereda.fr> Mon, 11 Dec 2017 14:13:54 +0100
-- Alexis Pereda <alexis@pereda.fr> Mon, 11 Dec 2017 14:13:54 +0100
mbclient (0.8.7) stable; urgency=low
* fix debian package permissions issue (bis)
-- Alexis Pereda <alexis@pereda.fr> Fri, 08 Dec 2017 12:49:30 +0100
-- Alexis Pereda <alexis@pereda.fr> Fri, 08 Dec 2017 12:49:30 +0100
mbclient (0.8.6) stable; urgency=low
* fix debian package permissions issue
-- Alexis Pereda <alexis@pereda.fr> Fri, 08 Dec 2017 12:44:30 +0100
-- Alexis Pereda <alexis@pereda.fr> Fri, 08 Dec 2017 12:44:30 +0100
mbclient (0.8.5) stable; urgency=low
* add copyright and changelog.gz to debian package
-- Alexis Pereda <alexis@pereda.fr> Thu, 07 Dec 2017 19:51:30 +0100
-- Alexis Pereda <alexis@pereda.fr> Thu, 07 Dec 2017 19:51:30 +0100
mbclient (0.8.4) stable; urgency=low
* fix ui glitches
-- Alexis Pereda <alexis@pereda.fr> Thu, 07 Dec 2017 00:35:34 +0100
-- Alexis Pereda <alexis@pereda.fr> Thu, 07 Dec 2017 00:35:34 +0100
mbclient (0.8.3) stable; urgency=low
......@@ -48,19 +64,19 @@ mbclient (0.8.3) stable; urgency=low
- Bug fixes:
* backspace handling in AskWindow
-- Alexis Pereda <alexis@pereda.fr> Thu, 23 Nov 2017 00:41:31 +0100
-- Alexis Pereda <alexis@pereda.fr> Thu, 23 Nov 2017 00:41:31 +0100
mbclient (0.8.2) stable; urgency=low
* fix bug with colors in some terminal emulators
-- Alexis Pereda <alexis@pereda.fr> Wed, 11 Oct 2017 22:43:44 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 11 Oct 2017 22:43:44 +0100
mbclient (0.8.1) stable; urgency=low
* shift left/right for small jumps
-- Alexis Pereda <alexis@pereda.fr> Mon, 09 Oct 2017 13:14:39 +0100
-- Alexis Pereda <alexis@pereda.fr> Mon, 09 Oct 2017 13:14:39 +0100
mbclient (0.8.0) stable; urgency=low
......@@ -73,13 +89,13 @@ mbclient (0.8.0) stable; urgency=low
- Bug fixes:
* no segfault on connection failed
-- Alexis Pereda <alexis@pereda.fr> Fri, 06 Oct 2017 14:08:58 +0100
-- Alexis Pereda <alexis@pereda.fr> Fri, 06 Oct 2017 14:08:58 +0100
mbclient (0.7.5) stable; urgency=low
* uniform colors in popup windows
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 23:11:44 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 23:11:44 +0100
mbclient (0.7.4) stable; urgency=low
......@@ -87,13 +103,13 @@ mbclient (0.7.4) stable; urgency=low
- fix background color in Window
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 23:00:13 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 23:00:13 +0100
mbclient (0.7.4) stable; urgency=low
* buf fix
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 22:28:02 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 22:28:02 +0100
mbclient (0.7.2) stable; urgency=low
......@@ -106,7 +122,7 @@ mbclient (0.7.2) stable; urgency=low
- Changes:
* ignore empty answers in AskWindow
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 22:13:57 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 22:13:57 +0100
mbclient (0.7.1) stable; urgency=low
......@@ -123,7 +139,7 @@ mbclient (0.7.1) stable; urgency=low
* fixed never empty current music
* music list updating
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 18:49:18 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 04 Oct 2017 18:49:18 +0100
mbclient (0.7.0) stable; urgency=low
......@@ -139,29 +155,29 @@ mbclient (0.7.0) stable; urgency=low
- Bug fixes in UI
-- Alexis Pereda <alexis@pereda.fr> Tue, 03 Oct 2017 13:46:41 +0100
-- Alexis Pereda <alexis@pereda.fr> Tue, 03 Oct 2017 13:46:41 +0100
mbclient (0.6.3) stable; urgency=low
* fix Debian jessie build
-- Alexis Pereda <alexis@pereda.fr> Sun, 01 Oct 2017 10:22:39 +0100
-- Alexis Pereda <alexis@pereda.fr> Sun, 01 Oct 2017 10:22:39 +0100
mbclient (0.6.2) stable; urgency=low
* small UI improvements
* thread for reception processing
-- Alexis Pereda <alexis@pereda.fr> Sat, 30 Sep 2017 19:17:15 +0100
-- Alexis Pereda <alexis@pereda.fr> Sat, 30 Sep 2017 19:17:15 +0100
mbclient (0.6.1) stable; urgency=low
* compatibility with jessie
-- Alexis Pereda <alexis@pereda.fr> Wed, 20 Sep 2017 21:12:55 +0100
-- Alexis Pereda <alexis@pereda.fr> Wed, 20 Sep 2017 21:12:55 +0100
mbclient (0.6.0) stable; urgency=low
* Initial Release.
-- Alexis Pereda <alexis@pereda.fr> Tue, 12 Sep 2017 18:49:26 +0100
-- Alexis Pereda <alexis@pereda.fr> Tue, 12 Sep 2017 18:49:26 +0100
......@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.1)
get_filename_component(project_name ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${project_name})
set(MBCLIENT_VERSION "0.8.9")
set(MBCLIENT_VERSION "0.9.0")
set(EXTENSION "cpp")
......
Package: mbclient
Version: 0.8.9
Version: 0.9.0
Architecture:
Installed-Size:
Depends: libncursesw5 (>= 5.9), libtinfo5 (>= 5.9), libc6 (>= 2.19), libstdc++6 (>= 4.9), libgcc1 (>= 1:4.9.2)
......
Package: mbclient
Version: 0.8.9
Version: 0.9.0
Architecture:
Installed-Size:
Depends: libncursesw5 (>= 6.0), libtinfo5 (>= 6.0), libc6 (>= 2.24), libstdc++6 (>= 6.0), libgcc1 (>= 1:6.0)
......
......@@ -64,9 +64,11 @@ void Ncurses::initialize() {
Ncurses::call(start_color);
if(_canChangeColors) {
Ncurses::call(init_color, COLOR_BLACK, 0, 0, 0);
Ncurses::call(init_color, T16, 0, 0, 0);
Ncurses::call(init_color, T28, 0, 527, 0);
Ncurses::call(init_color, T88, 527, 0, 0);
Ncurses::call(init_color, T124, 683, 0, 0);
Ncurses::call(init_color, T231, 1000, 1000, 1000);
Ncurses::call(init_color, T237, 227, 227, 227);
for(int bg = Black; bg < Count; ++bg)
......
......@@ -22,9 +22,9 @@ enum class ColorZone { Border, Title, Text, Global, Count };
enum Color {
Black, Red, Green, Yellow, Blue, Magenta, Cyan, White,
T28,
T88, T124,
T237,
T16, T28, T88,
T124,
T231, T237,
Count
};
......
......@@ -15,13 +15,13 @@ Window::Window():
_redecorateOnRepaint{true},
_colorsTextStep{0},
_colorsText{
{White, Black}
{T231, T16}
},
_colors{
{White, Black},
{White, Black},
{White, Black},
{White, Black},
{T231, T16},
{T231, T16},
{T231, T16},
{T231, T16},
} {
}
......@@ -32,13 +32,13 @@ Window::Window(std::size_t x, std::size_t y, std::size_t w, std::size_t h, std::
_redecorateOnRepaint{true},
_colorsTextStep{0},
_colorsText{
{White, Black}
{T231, T16}
},
_colors{
{White, Black},
{White, Black},
{White, Black},
{White, Black},
{T231, T16},
{T231, T16},
{T231, T16},
{T231, T16},
} {
Ncurses::call(wclear, _winptr);
decorate();
......@@ -91,6 +91,8 @@ void Window::resize(std::size_t x, std::size_t y, std::size_t w, std::size_t h)
void Window::decorate() {
if(!_winptr) return;
Ncurses::call(wbkgd, _winptr, _colors[static_cast<int>(ColorZone::Global)].bg);
Ncurses::call(werase, _winptr);
Ncurses::call(wattron, _winptr, _colors[static_cast<int>(ColorZone::Border)]);
......@@ -198,13 +200,13 @@ void Window::setColor(Color c, ColorZone z, ColorDepth d) {
if(d == ColorDepth::Foreground) _colors[static_cast<int>(z)].fg = c;
else _colors[static_cast<int>(z)].bg = c;
if(_winptr) Ncurses::call(wclear, _winptr);
if(_winptr) decorate();
}
void Window::setColors(ColorPair c, ColorZone z) {
_colors[static_cast<int>(z)] = c;
if(_winptr) Ncurses::call(wclear, _winptr);
if(_winptr) decorate();
}
}
......
......@@ -69,6 +69,7 @@ int MbClient::run() {
if(!connect()) {
running = false;
threadInput.join();
threadUI.join();
return 1;
......
......@@ -107,6 +107,8 @@ void Ui::initializeWindows() {
_windowsMgr.add(_windows.at(WindowId::Volume));
}
windowDo(WindowId::List, &Window::setColors, ColorPair{T231, T16}, ColorZone::Global);
windowDo(WindowId::List, &Window::setTitle, "Music list");
windowDo(WindowId::PlCur, &Window::setTitle, "Current playlist");
windowDo(WindowId::Progress, &Window::setTextColors, 1, ColorPairs{{White, White}});
......