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:
parent
f15973f2c8
commit
92b04b66c7
@ -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…
x
Reference in New Issue
Block a user