This function is called to load the initial Theme images. It does not though cause the GUI to refresh.
| 253 | /// This function is called to load the initial Theme images. |
| 254 | /// It does not though cause the GUI to refresh. |
| 255 | void 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 | |
| 276 | void ThemeBase::RecolourBitmap( int iIndex, wxColour From, wxColour To ) |
| 277 | { |