public Theme(IThemeFactory themeFactory)
        {
            _themeFactory = themeFactory;

            _backgroundColor = _themeFactory.CreateBackgorundColor();
            _textColor       = _themeFactory.CreateTextColor();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="themeFactory">The theme factory.</param>
 /// <param name="languageFactory">The language factory.</param>
 public VisualViewModel(
     ISettingsService settingsService,
     IThemeFactory themeFactory,
     ILanguageFactory languageFactory)
     : base(settingsService)
 {
     this.themeFactory = themeFactory;
     this.languageFactory = languageFactory;
     this.Init();
 }
Example #3
0
 /// <summary>
 /// Initalize theme for your application.
 /// </summary>
 /// <param name="theme">The theme you want to apply.</param>
 public static void InitializeTheme(IThemeFactory theme)
 {
     AppTheme = theme;
 }