Calculate ColorSelector border automatically

This commit is contained in:
David Capello 2018-11-15 11:41:16 -03:00
parent 3be5fe03dc
commit 8fe58f0ee4

View File

@ -383,8 +383,10 @@ bool ColorSelector::onProcessMessage(ui::Message* msg)
void ColorSelector::onInitTheme(ui::InitThemeEvent& ev)
{
SkinTheme* theme = static_cast<SkinTheme*>(this->theme());
Widget::onInitTheme(ev);
setBorder(gfx::Border(3*ui::guiscale()));
setBorder(theme->calcBorder(this, theme->styles.editorView()));
}
void ColorSelector::onResize(ui::ResizeEvent& ev)