mirror of https://github.com/BOINC/boinc.git
Manager: brighten colors in disk/stats views
This commit is contained in:
parent
861042c00f
commit
3b60fa1679
|
@ -2626,7 +2626,7 @@ static void hsv2rgb(
|
||||||
void color_cycle(int i, int n, wxColour& color) {
|
void color_cycle(int i, int n, wxColour& color) {
|
||||||
double h = (double)i/(double)n;
|
double h = (double)i/(double)n;
|
||||||
double r, g, b;
|
double r, g, b;
|
||||||
double v = .6;
|
double v = .7;
|
||||||
if (n > 6) v = .5 + (i % 3)*.125;
|
if (n > 6) v = .5 + (i % 3)*.125;
|
||||||
// cycle through 3 different brightnesses
|
// cycle through 3 different brightnesses
|
||||||
hsv2rgb(h*6, .5, v, r, g, b);
|
hsv2rgb(h*6, .5, v, r, g, b);
|
||||||
|
|
Loading…
Reference in New Issue