mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 08:10: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:
parent
dc05b94fd1
commit
cd0ac7d7ef
@ -250,15 +250,18 @@ bool ThemeBase::LoadPreferredTheme()
|
||||
void Theme::ApplyUpdatedImages()
|
||||
{
|
||||
AColor::ReInit();
|
||||
AudacityProject *p = GetActiveProject();
|
||||
p->ApplyUpdatedTheme();
|
||||
for( int ii = 0; ii < ToolBarCount; ++ii )
|
||||
{
|
||||
ToolBar *pToolBar = p->GetToolManager()->GetToolBar(ii);
|
||||
if( pToolBar )
|
||||
pToolBar->ReCreateButtons();
|
||||
|
||||
for (size_t i = 0; i < gAudacityProjects.size(); i++) {
|
||||
AudacityProject *p = gAudacityProjects[i].get();
|
||||
p->ApplyUpdatedTheme();
|
||||
for( int ii = 0; ii < ToolBarCount; ++ii )
|
||||
{
|
||||
ToolBar *pToolBar = p->GetToolManager()->GetToolBar(ii);
|
||||
if( pToolBar )
|
||||
pToolBar->ReCreateButtons();
|
||||
}
|
||||
p->GetRulerPanel()->ReCreateButtons();
|
||||
}
|
||||
p->GetRulerPanel()->ReCreateButtons();
|
||||
}
|
||||
|
||||
void Theme::RegisterImages()
|
||||
|
Loading…
x
Reference in New Issue
Block a user