Esempio n. 1
0
        public static Theme CreateDefaultTheme(string[]?variations = null)
        {
            var appColors = AppColorNames.ToDictionary(name => name, name => AppColorDefaults.GetBy(name, variations));
            var sysColors = SysColorNames.ToDictionary(name => name, GetFixedColor);

            return(new Theme(appColors, sysColors, ThemeId.Default));
        }
Esempio n. 2
0
 public override Color GetColor(AppColor name) =>
 AppColorDefaults.GetBy(name);