Keep alpha picking colors from bottom slider in color wheel

This commit is contained in:
David Capello 2017-05-30 13:57:44 -03:00
parent 629c359627
commit afdf156a0e

View File

@ -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)