1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 07:58:05 +02:00

Bug 1715 - Theme change in the case of multiple open windows is only complete in the foreground window.

This commit is contained in:
James Crook 2017-08-14 15:36:16 +01:00
parent dc05b94fd1
commit cd0ac7d7ef

@ -250,15 +250,18 @@ bool ThemeBase::LoadPreferredTheme()
void Theme::ApplyUpdatedImages() void Theme::ApplyUpdatedImages()
{ {
AColor::ReInit(); AColor::ReInit();
AudacityProject *p = GetActiveProject();
p->ApplyUpdatedTheme(); for (size_t i = 0; i < gAudacityProjects.size(); i++) {
for( int ii = 0; ii < ToolBarCount; ++ii ) AudacityProject *p = gAudacityProjects[i].get();
{ p->ApplyUpdatedTheme();
ToolBar *pToolBar = p->GetToolManager()->GetToolBar(ii); for( int ii = 0; ii < ToolBarCount; ++ii )
if( pToolBar ) {
pToolBar->ReCreateButtons(); ToolBar *pToolBar = p->GetToolManager()->GetToolBar(ii);
if( pToolBar )
pToolBar->ReCreateButtons();
}
p->GetRulerPanel()->ReCreateButtons();
} }
p->GetRulerPanel()->ReCreateButtons();
} }
void Theme::RegisterImages() void Theme::RegisterImages()