From 11bca88db7627b7ecc9e6d1d10a3255af85133db Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 5 Jul 2020 12:57:44 +0200 Subject: [PATCH] Only show a colored border around client widgets when there is a warning state. Normal operation is just normal looking --- src/legacy-gui.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/legacy-gui.cpp b/src/legacy-gui.cpp index ff78aa3..aea6cc0 100644 --- a/src/legacy-gui.cpp +++ b/src/legacy-gui.cpp @@ -249,9 +249,12 @@ public: stopped( 0 ); + // The following colors are a thin borders around client entries. + // Even without a color there will still be a rounded border from the label itself, which looks fine. + if ( ! strcmp( command, "ready" ) ) { - color( fl_color_average( FL_BLACK, FL_GREEN, 0.50 ) ); + color( FL_BACKGROUND_COLOR ); _progress->value( 0.0f ); } else if ( ! strcmp( command, "quit" ) || @@ -266,7 +269,7 @@ public: } else { - color( fl_color_average( FL_BLACK, FL_YELLOW, 0.50 ) ); + color( FL_BACKGROUND_COLOR ); } redraw();