Show Alpha slider like a grayscale slider

This commit is contained in:
David Capello 2016-09-09 20:23:39 -03:00
parent b1661e910d
commit d97b14d18e

View File

@ -68,6 +68,7 @@ namespace {
color = color_utils::color_for_ui(app::Color::fromHsv(m_color.getHue(), m_color.getSaturation(), 100 * x / w));
break;
case ColorSliders::Gray:
case ColorSliders::Alpha:
color = color_utils::color_for_ui(app::Color::fromGray(255 * x / w));
break;
}