1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 21:14:33 +00:00

- Increase ratio difference to make availability more readable

This commit is contained in:
Christophe Dumez 2009-11-25 15:38:33 +00:00
parent f15973f2c8
commit 92b04b66c7

View File

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