Update preview window theme correctly when it's hidden

This commit is contained in:
David Capello 2017-08-17 09:14:32 -03:00
parent c9f31bb07e
commit 3eccadb681
2 changed files with 9 additions and 1 deletions

View File

@ -322,6 +322,13 @@ bool MainWindow::onProcessMessage(ui::Message* msg)
return Window::onProcessMessage(msg);
}
void MainWindow::onInitTheme(ui::InitThemeEvent& ev)
{
app::gen::MainWindow::onInitTheme(ev);
if (m_previewEditor)
m_previewEditor->initTheme();
}
void MainWindow::onSaveLayout(SaveLayoutEvent& ev)
{
// Invert the timeline splitter position before we save the setting.

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2016 David Capello
// Copyright (C) 2001-2017 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
@ -96,6 +96,7 @@ namespace app {
protected:
bool onProcessMessage(ui::Message* msg) override;
void onInitTheme(ui::InitThemeEvent& ev) override;
void onSaveLayout(ui::SaveLayoutEvent& ev) override;
void onResize(ui::ResizeEvent& ev) override;
void onActiveViewChange();