Browse Source

- Increase ratio difference to make availability more readable

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
92b04b66c7
  1. 4
      src/pieceavailabilitybar.h

4
src/pieceavailabilitybar.h

@ -91,6 +91,10 @@ protected: @@ -91,6 +91,10 @@ protected:
//qDebug("avail: %d/%d", avail, max_avail);
QColor color = Qt::blue; // average avail
double fraction = 100.*average/avail;
if(fraction < 100)
fraction *= 0.9;
else
fraction *= 1.1;
return color.lighter(fraction);
}
};

Loading…
Cancel
Save