mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Show ColorSpectrum's indicator white-colored if it's in the dark side
This commit is contained in:
parent
d467d71fa5
commit
c1392909bb
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@ -139,7 +139,9 @@ void ColorSpectrum::onPaint(ui::PaintEvent& ev)
|
|||||||
rc.y + rc.h - (lit * rc.h / 100));
|
rc.y + rc.h - (lit * rc.h / 100));
|
||||||
|
|
||||||
she::Surface* icon = theme->parts.colorWheelIndicator()->bitmap(0);
|
she::Surface* icon = theme->parts.colorWheelIndicator()->bitmap(0);
|
||||||
g->drawRgbaSurface(icon,
|
g->drawColoredRgbaSurface(
|
||||||
|
icon,
|
||||||
|
lit > 50 ? gfx::rgba(0, 0, 0): gfx::rgba(255, 255, 255),
|
||||||
pos.x-icon->width()/2,
|
pos.x-icon->width()/2,
|
||||||
pos.y-icon->height()/2);
|
pos.y-icon->height()/2);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user