Audacity  3.0.3
Classes | Macros | Variables
Theme.cpp File Reference
#include "Theme.h"
#include <wx/wxprec.h>
#include <wx/dcclient.h>
#include <wx/image.h>
#include <wx/file.h>
#include <wx/ffile.h>
#include <wx/mstream.h>
#include <wx/settings.h>
#include "AllThemeResources.h"
#include "BasicUI.h"
#include "FileNames.h"
#include "Prefs.h"
#include "ImageManipulation.h"
#include "Internat.h"
#include "MemoryX.h"
#include "widgets/AudacityMessageBox.h"
#include "DarkThemeAsCeeCode.h"
#include "LightThemeAsCeeCode.h"
#include "ClassicThemeAsCeeCode.h"
#include "HiContrastThemeAsCeeCode.h"
Include dependency graph for Theme.cpp:

Go to the source code of this file.

Classes

class  SourceOutputStream
 Helper class based on wxOutputStream used to get a png file in text format. More...
 

Macros

#define THEME_INITS
 

Variables

static const unsigned char DarkImageCacheAsData []
 
static const unsigned char LightImageCacheAsData []
 
static const unsigned char ClassicImageCacheAsData []
 
static const unsigned char HiContrastImageCacheAsData []
 
AUDACITY_DLL_API Theme theTheme
 
const int ImageCacheWidth = 440
 
const int ImageCacheHeight = 836
 
constexpr int defaultTheme
 
ChoiceSetting GUITheme
 

Macro Definition Documentation

◆ THEME_INITS

#define THEME_INITS

Variable Documentation

◆ ClassicImageCacheAsData

const unsigned char ClassicImageCacheAsData[]
static
Initial value:
= {
}

Definition at line 195 of file Theme.cpp.

Referenced by ThemeBase::ReadImageCache().

◆ DarkImageCacheAsData

const unsigned char DarkImageCacheAsData[]
static
Initial value:
= {
}

Definition at line 189 of file Theme.cpp.

Referenced by ThemeBase::ReadImageCache().

◆ defaultTheme

constexpr int defaultTheme
constexpr
Initial value:
=
1

Definition at line 1306 of file Theme.cpp.

◆ GUITheme

ChoiceSetting GUITheme
Initial value:
{
wxT("/GUI/Theme"),
{
{
XO("Classic") ,
XO("Light") ,
XO("Dark") ,
XO("High Contrast") ,
XO("Custom") ,
},
{
wxT("classic") ,
wxT("light") ,
wxT("dark") ,
wxT("high-contrast") ,
wxT("custom") ,
}
},
}

Definition at line 1314 of file Theme.cpp.

Referenced by ThemeBase::LoadPreferredTheme(), and GUIPrefs::PopulateOrExchange().

◆ HiContrastImageCacheAsData

const unsigned char HiContrastImageCacheAsData[]
static
Initial value:
= {
}

Definition at line 198 of file Theme.cpp.

Referenced by ThemeBase::ReadImageCache().

◆ ImageCacheHeight

const int ImageCacheHeight = 836

Definition at line 631 of file Theme.cpp.

Referenced by ThemeBase::CreateImageCache().

◆ ImageCacheWidth

const int ImageCacheWidth = 440

◆ LightImageCacheAsData

const unsigned char LightImageCacheAsData[]
static
Initial value:
= {
}

Definition at line 192 of file Theme.cpp.

Referenced by ThemeBase::ReadImageCache().

◆ theTheme

AUDACITY_DLL_API Theme theTheme

Definition at line 203 of file Theme.cpp.

Referenced by EditToolBar::AddButton(), ScrubbingToolBar::AddButton(), TranscriptionToolBar::AddButton(), anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::AddStuck(), SelectionBar::AddTitle(), ProjectWindow::ApplyUpdatedTheme(), ASlider::ASlider(), auStaticText::auStaticText(), AColor::Bevel2(), AColor::BevelTrackInfo(), TrackInfo::CloseTitleDrawFunction(), GUIPrefs::Commit(), CreateStdButtonSizer(), Exporter::CreateUserPane(), CursorColour(), WaveTrackVRulerControls::DoDraw(), AdornedRulerPanel::DoDrawMarks(), AdornedRulerPanel::DoDrawSelection(), LabelTrackView::Draw(), NoteTrackAffordanceControls::Draw(), WaveTrackAffordanceControls::Draw(), TimeTrackVRulerControls::Draw(), Ruler::Label::Draw(), TrackInfo::DrawCloseButton(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), TrackInfo::DrawItems(), NoteTrack::DrawLabelControls(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack(), FrequencyPlotDialog::DrawPlot(), TrackArt::DrawSyncLockTiles(), LWSlider::DrawToBitmap(), anonymous_namespace{TrackPanel.cpp}::DrawTrackName(), ErrorReportDialog::ErrorReportDialog(), LabelTrackView::GetGlyph(), AdornedRulerPanel::GetIndicatorBitmap(), Grabber::Grabber(), HtmlColourOfIndex(), AColor::Init(), InitProjectWindow(), NumericTextCtrl::Layout(), ThemeBase::LoadPreferredTheme(), ThemeBase::LoadTheme(), ControlToolBar::MakeAlternateImages(), ToolBar::MakeAlternateImages(), TranscriptionToolBar::MakeAlternateImages(), ControlToolBar::MakeButton(), ToolBar::MakeButton(), MixerBoard::MakeButtonBitmap(), ToolBar::MakeMacRecoloredImage(), WaveTrackAffordanceControls::MakeTextEditHelper(), ToolsToolBar::MakeTool(), TrackInfo::MinimizeSyncLockDrawFunction(), MixerBoard::MixerBoard(), MultiDialog::MultiDialog(), ToolManager::OnIndicatorPaint(), AudacityApp::OnInit(), ThemePrefs::OnLoadThemeCache(), ThemePrefs::OnLoadThemeComponents(), EqualizationPanel::OnPaint(), ToolBarResizer::OnPaint(), ToolBar::OnPaint(), ToolDock::OnPaint(), NumericTextCtrl::OnPaint(), EffectAutoDuckPanel::OnPaint(), EffectCompressorPanel::OnPaint(), EffectScienFilterPanel::OnPaint(), MixerTrackCluster::OnPaint(), MeterPanel::OnPaint(), ToolFrame::OnPaint(), ThemePrefs::OnReadThemeInternal(), ThemePrefs::OnSaveThemeAsCode(), ThemePrefs::OnSaveThemeCache(), ThemePrefs::OnSaveThemeComponents(), OverlayImage(), FrequencyPlotDialog::Populate(), ControlToolBar::Populate(), DeviceToolBar::Populate(), EditToolBar::Populate(), MeterToolBar::Populate(), MixerToolBar::Populate(), ScrubbingToolBar::Populate(), SelectionBar::Populate(), ToolsToolBar::Populate(), TranscriptionToolBar::Populate(), AColor::PreComputeGradient(), AdornedRulerPanel::ReCreateButtons(), ThemeBase::RotateImageInto(), Ruler::Ruler(), TrackArtist::SetColours(), LogWindow::Show(), HelpSystem::ShowHtmlText(), ToolBarGrabber::ToolBarGrabber(), ToolDock::ToolDock(), MixerBoard::UpdatePrefs(), and AColor::UseThemeColour().

defaultTheme
constexpr int defaultTheme
Definition: Theme.cpp:1306
XO
#define XO(s)
Definition: Internat.h:31
ByColumns
ByColumns_t ByColumns
Definition: Prefs.cpp:420