mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
Calculate ColorSelector border automatically
This commit is contained in:
parent
3be5fe03dc
commit
8fe58f0ee4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user