mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
improved color code of previous commit
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
429d6f2dc3
commit
68e679873d
@ -17,7 +17,7 @@ class TRHistogram
|
|||||||
QColor colorScale(float f)
|
QColor colorScale(float f)
|
||||||
{
|
{
|
||||||
if(f == 0)
|
if(f == 0)
|
||||||
return QColor::fromHsv(0,0,128) ;
|
return QColor::fromHsv(0,0,192) ;
|
||||||
else
|
else
|
||||||
return QColor::fromHsv((int)((1.0-f)*280),200,255) ;
|
return QColor::fromHsv((int)((1.0-f)*280),200,255) ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user