Browse Source

Only show a colored border around client widgets when there is a warning state. Normal operation is just normal looking

tags/v1.4.0
Nils 4 years ago
parent
commit
11bca88db7
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/legacy-gui.cpp

+ 5
- 2
src/legacy-gui.cpp View File

@@ -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();


Loading…
Cancel
Save