public TerminalTheme GetCurrentTheme() { var id = GetCurrentThemeId(); var theme = GetTheme(id); if (theme == null) { id = _defaultValueProvider.GetDefaultThemeId(); SaveCurrentThemeId(id); theme = GetTheme(id); } return(theme); }
public Guid GetCurrentThemeId() { if (_roamingSettings.Values.TryGetValue(CurrentThemeKey, out object value)) { return((Guid)value); } return(_defaultValueProvider.GetDefaultThemeId()); }