mirror of https://github.com/aseprite/aseprite.git
				
				
				
			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);
 | 
					  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)
 | 
					void MainWindow::onSaveLayout(SaveLayoutEvent& ev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  // Invert the timeline splitter position before we save the setting.
 | 
					  // Invert the timeline splitter position before we save the setting.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
// Aseprite
 | 
					// Aseprite
 | 
				
			||||||
// Copyright (C) 2001-2016  David Capello
 | 
					// Copyright (C) 2001-2017  David Capello
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// This program is distributed under the terms of
 | 
					// This program is distributed under the terms of
 | 
				
			||||||
// the End-User License Agreement for Aseprite.
 | 
					// the End-User License Agreement for Aseprite.
 | 
				
			||||||
| 
						 | 
					@ -96,6 +96,7 @@ namespace app {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  protected:
 | 
					  protected:
 | 
				
			||||||
    bool onProcessMessage(ui::Message* msg) override;
 | 
					    bool onProcessMessage(ui::Message* msg) override;
 | 
				
			||||||
 | 
					    void onInitTheme(ui::InitThemeEvent& ev) override;
 | 
				
			||||||
    void onSaveLayout(ui::SaveLayoutEvent& ev) override;
 | 
					    void onSaveLayout(ui::SaveLayoutEvent& ev) override;
 | 
				
			||||||
    void onResize(ui::ResizeEvent& ev) override;
 | 
					    void onResize(ui::ResizeEvent& ev) override;
 | 
				
			||||||
    void onActiveViewChange();
 | 
					    void onActiveViewChange();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue