예제 #1
0
        public void ApplyColorTheme(MyColorTheme mycolortheme)
        {
            this.ForeColor = mycolortheme.GetColor(this.ForeColor, mycolortheme.ControlTextColor);
            this.BackColor = mycolortheme.GetColor(this.BackColor, mycolortheme.ControlColor);
            Color wc = mycolortheme.WindowColor;
            Color gc = mycolortheme.ControlColorDark;

            gridViewModel.SetColors(this.ForeColor, this.BackColor, wc, gc);
            Refresh();
        }
예제 #2
0
파일: MyGrid.cs 프로젝트: Camel-RD/Klons
        public void ApplyColorTheme(MyColorTheme mycolortheme)
        {
            this.ForeColor = mycolortheme.GetColor(this.ForeColor, mycolortheme.ControlTextColor);
            this.BackColor = mycolortheme.GetColor(this.BackColor, mycolortheme.ControlColor);
            Color wc = mycolortheme.WindowColor;
            Color gc = mycolortheme.ControlColorDark;

            gridViewModel.SetColors(this.ForeColor, this.BackColor, wc, gc);
            foreach (var lc in LinkedControls)
            {
                if (FindForm().Contains(lc.Control))
                {
                    continue;
                }
                ColorThemeHelper.ApplyToControl(lc, mycolortheme);
            }
            Refresh();
        }