Show ColorSpectrum's indicator white-colored if it's in the dark side

This commit is contained in:
David Capello 2015-12-05 16:11:03 -03:00
parent d467d71fa5
commit c1392909bb
2 changed files with 5 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -139,9 +139,11 @@ void ColorSpectrum::onPaint(ui::PaintEvent& ev)
rc.y + rc.h - (lit * rc.h / 100));
she::Surface* icon = theme->parts.colorWheelIndicator()->bitmap(0);
g->drawRgbaSurface(icon,
pos.x-icon->width()/2,
pos.y-icon->height()/2);
g->drawColoredRgbaSurface(
icon,
lit > 50 ? gfx::rgba(0, 0, 0): gfx::rgba(255, 255, 255),
pos.x-icon->width()/2,
pos.y-icon->height()/2);
}
}