예제 #1
0
        public TerminalTheme GetCurrentTheme()
        {
            var id    = GetCurrentThemeId();
            var theme = GetTheme(id);

            if (theme == null)
            {
                id = _defaultValueProvider.GetDefaultThemeId();
                SaveCurrentThemeId(id);
                theme = GetTheme(id);
            }
            return(theme);
        }
예제 #2
0
 public Guid GetCurrentThemeId()
 {
     if (_roamingSettings.Values.TryGetValue(CurrentThemeKey, out object value))
     {
         return((Guid)value);
     }
     return(_defaultValueProvider.GetDefaultThemeId());
 }