private void InnerInitialize() {
AppearanceManager.Current.Initialize();
var theme = ValuesStorage.GetString(KeyTheme);
InitializeThemesList();
SelectedTheme = Themes.OfType<ThemeLink>().GetByIdOrDefault(theme) ?? Themes.OfType<ThemeLink>().FirstOrDefault();
try {
_loading = true;
AccentColor = ValuesStorage.GetColor(KeyAccentColor, AccentColors.First());
if (AccentColor.A == 0) AccentColor = AccentColors.First();
AccentDisplayColor = ValuesStorage.GetString(KeyAccentDisplayColor);
IdealFormattingMode = ValuesStorage.GetBool(KeyIdealFormattingMode, OptionIdealFormattingModeDefaultValue);
SmallFont = ValuesStorage.GetBool(KeySmallFont);
BitmapScalingMode = ValuesStorage.GetEnum(KeyBitmapScaling, BitmapScalingMode.HighQuality);
LargeSubMenuFont = ValuesStorage.GetBool(KeyLargeSubMenuFont);
PopupToolBars = ValuesStorage.GetBool(KeyPopupToolBars);
FrameAnimation = FrameAnimations.FirstOrDefault(x => x.Id == ValuesStorage.GetString(KeyFrameAnimation)) ?? FrameAnimations.First();
} finally {
_loading = false;
}
}