From 613cd38daa12a9ba6c315cb00901852077ac7a19 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 23 May 2021 12:32:32 -0300 Subject: [PATCH] Set the theme of ColorButton popups correctly if they are created --- src/app/ui/color_button.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/ui/color_button.cpp b/src/app/ui/color_button.cpp index 3692c3bc1..abaaabfa9 100644 --- a/src/app/ui/color_button.cpp +++ b/src/app/ui/color_button.cpp @@ -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)