setThemeMode method

void setThemeMode(
  1. DigiaThemeMode themeMode
)

Selects the theme used when Campaign Canvas colors are rendered.

Implementation

void setThemeMode(DigiaThemeMode themeMode) {
  if (!_initialized) {
    _log.e('setThemeMode() ignored — called before initialize()');
    return;
  }
  _themeMode = themeMode;
  CampaignColorResolver.shared.setThemeMode(themeMode);
  _log.d('Canvas theme applied (theme=${themeMode.name})');
}