Colors.cs 709 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace FLY.Thick.Blowing.UI.Fix.Server.Themes
{
    public static class Colors
    {
        public static List<Brush> AreaColors;
        static Colors()
        {
            var resourceDictionary = new ResourceDictionary() { Source = new Uri("pack://application:,,,/FLY.Thick.Blowing.UI.Fix.Server;component/Themes/Colors.xaml") };

            AreaColors = new List<Brush>();
            for (int i = 0; i < 5; i++)
                AreaColors.Add(resourceDictionary[$"Brushes.ChartArea{i}"] as SolidColorBrush);
        }
    }
}