mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Update preview window theme correctly when it's hidden
This commit is contained in:
parent
c9f31bb07e
commit
3eccadb681
@ -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.
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user