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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user