mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 11:59:58 +00:00
Set the theme of ColorButton popups correctly if they are created
This commit is contained in:
parent
f4ed3ae321
commit
613cd38daa
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2020 Igara Studio S.A.
|
// Copyright (C) 2020-2021 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -116,6 +116,9 @@ void ColorButton::onInitTheme(InitThemeEvent& ev)
|
|||||||
{
|
{
|
||||||
ButtonBase::onInitTheme(ev);
|
ButtonBase::onInitTheme(ev);
|
||||||
setStyle(SkinTheme::instance()->styles.colorButton());
|
setStyle(SkinTheme::instance()->styles.colorButton());
|
||||||
|
|
||||||
|
if (m_window)
|
||||||
|
m_window->initTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ColorButton::onProcessMessage(Message* msg)
|
bool ColorButton::onProcessMessage(Message* msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user