1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Theme.cpp has fewer dependencies...

It remains in a cycle with ImageManipulation, but the two are free from
other cycles
This commit is contained in:
Paul Licameli
2019-05-11 08:40:38 -04:00
parent 82f4948360
commit 4bdcf3152f
5 changed files with 26 additions and 27 deletions

View File

@@ -72,13 +72,9 @@ can't be.
#include <wx/mstream.h>
#include <wx/settings.h>
#include "Project.h"
#include "toolbars/ToolManager.h"
#include "AllThemeResources.h" // can remove this later, only needed for 'XPMS_RETIRED'.
#include "FileNames.h"
#include "Prefs.h"
#include "AColor.h"
#include "AdornedRulerPanel.h"
#include "ImageManipulation.h"
#include "widgets/ErrorDialog.h"
@@ -247,23 +243,6 @@ bool ThemeBase::LoadPreferredTheme()
return true;
}
void Theme::ApplyUpdatedImages()
{
AColor::ReInit();
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();
}
}
void Theme::RegisterImages()
{
if( mbInitialised )