Set the theme of ColorButton popups correctly if they are created

This commit is contained in:
David Capello 2021-05-23 12:32:32 -03:00
parent f4ed3ae321
commit 613cd38daa

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2020 Igara Studio S.A.
// Copyright (C) 2020-2021 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -116,6 +116,9 @@ void ColorButton::onInitTheme(InitThemeEvent& ev)
{
ButtonBase::onInitTheme(ev);
setStyle(SkinTheme::instance()->styles.colorButton());
if (m_window)
m_window->initTheme();
}
bool ColorButton::onProcessMessage(Message* msg)