MCPcopy Create free account
hub / github.com/audacity/audacity / LoadTheme

Method LoadTheme

libraries/lib-theme/Theme.cpp:255–274  ·  view source on GitHub ↗

This function is called to load the initial Theme images. It does not though cause the GUI to refresh.

Source from the content-addressed store, hash-verified

253/// This function is called to load the initial Theme images.
254/// It does not though cause the GUI to refresh.
255void ThemeBase::LoadTheme( teThemeType Theme )
256{
257 SwitchTheme( Theme );
258
259 // Post-processing steps after loading of the cache
260
261 // Two always overwritten images
262 RotateImageInto( bmpRecordBeside, bmpRecordBelow, false );
263 RotateImageInto( bmpRecordBesideDisabled, bmpRecordBelowDisabled, false );
264
265 // Next line is not required as we haven't yet built the GUI
266 // when this function is (or should be) called.
267 // AColor::ApplyUpdatedImages();
268
269 // The next step doesn't post-process the theme data. It only modifies
270 // system settings. So it is not necessary to make it conditional on
271 // preferences, for avoidance of errors in the use of Theme preferences.
272 // (See commit 2020217)
273 Publish({ mPreferredSystemAppearance });
274}
275
276void ThemeBase::RecolourBitmap( int iIndex, wxColour From, wxColour To )
277{

Callers 1

LoadPreferredThemeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected