Exemplo n.º 1
0
 private void SetTheme()
 {
     if (BaseTheme is BaseTheme baseTheme &&
         PrimaryColor is Color primaryColor &&
         SecondaryColor is Color secondaryColor)
     {
         var theme = Theme.Create(baseTheme.GetBaseTheme(), primaryColor, secondaryColor);
         ApplyTheme(theme);
     }
 }
Exemplo n.º 2
0
        private void SetTheme()
        {
            if (BaseTheme is BaseTheme baseTheme &&
                PrimaryColor is PrimaryColor primaryColor &&
                SecondaryColor is SecondaryColor secondaryColor)
            {
                var theme = Theme.Create(baseTheme.GetBaseTheme(),
                                         SwatchHelper.Lookup[(MaterialDesignColor)primaryColor],
                                         SwatchHelper.Lookup[(MaterialDesignColor)secondaryColor]);

                ApplyTheme(theme);
            }
        }
Exemplo n.º 3
0
 protected override ITheme GetTheme()
 {
     return(Theme.Create(BaseTheme.GetBaseTheme(), Primary, Accent));
 }
Exemplo n.º 4
0
 protected override ITheme GetTheme()
 {
     return(Theme.Create(BaseTheme.GetBaseTheme(),
                         SwatchHelper.Lookup[(MaterialDesignColor)PrimaryColor],
                         SwatchHelper.Lookup[(MaterialDesignColor)AccentColor]));
 }
 protected override ITheme GetTheme()
 {
     return(Theme.Create(BaseTheme.GetBaseTheme(), Primary, Secondary));
 }