1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 16:08:07 +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

View File

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