コード例 #1
0
        public ColorScheduler()
        {
            ColorTheme th1 = new ColorTheme();

            th1.SetThemeColor(eThemeMode.Dark, Color.SkyBlue);
            th1.SetThemeColor(eThemeMode.Light, Color.Blue);

            ColorTheme th2 = new ColorTheme();

            th2.SetThemeColor(eThemeMode.Dark, Color.Red);
            th2.SetThemeColor(eThemeMode.Light, Color.Red);

            ColorTheme th3 = new ColorTheme();

            th3.SetThemeColor(eThemeMode.Dark, Color.YellowGreen);
            th3.SetThemeColor(eThemeMode.Light, Color.Green);

            ColorTheme th4 = new ColorTheme();

            th4.SetThemeColor(eThemeMode.Dark, Color.Tomato);
            th4.SetThemeColor(eThemeMode.Light, Color.Black);
            _colors.AddRange(new ITheme[] { th1, th2, th3, th4 });
        }