mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +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,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user