public ThemeConfigViewModel( IDopyUiConfiguration uiConfiguration, IConfigTranslations uiTranslations, MetroThemeManager metroThemeManager ) { UiConfiguration = uiConfiguration; UiTranslations = uiTranslations; _metroThemeManager = metroThemeManager; _metroThemeManager.ChangeTheme(UiConfiguration.Theme, UiConfiguration.ThemeColor); }
public override void AfterLoad() { _metroThemeManager.ChangeTheme(Theme, ThemeColor); base.AfterLoad(); }
/// <inheritdoc /> public override void Rollback() { MetroConfiguration.RollbackTransaction(); _metroThemeManager.ChangeTheme(MetroConfiguration.Theme, MetroConfiguration.ThemeColor); }