mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 17:40:01 +00:00
Keep alpha picking colors from bottom slider in color wheel
This commit is contained in:
parent
629c359627
commit
afdf156a0e
@ -136,7 +136,8 @@ app::Color ColorWheel::getBottomBarColor(const int u, const int umax)
|
|||||||
return app::Color::fromHsv(
|
return app::Color::fromHsv(
|
||||||
m_color.getHsvHue(),
|
m_color.getHsvHue(),
|
||||||
m_color.getHsvSaturation(),
|
m_color.getHsvSaturation(),
|
||||||
MID(0.0, val, 1.0));
|
MID(0.0, val, 1.0),
|
||||||
|
m_color.getAlpha());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorWheel::onPaintMainArea(ui::Graphics* g, const gfx::Rect& rc)
|
void ColorWheel::onPaintMainArea(ui::Graphics* g, const gfx::Rect& rc)
|
||||||
|
Loading…
Reference in New Issue
Block a user