Beispiel #1
0
        private void Draw(ColorType type)
        {
            if (type.HasFlag(ColorType.B))
            {
                this.DefaultCellStyle.SelectionBackColor = this.Theme.ColorB;
            }

            if (type.HasFlag(ColorType.E))
            {
                this.RowHeadersDefaultCellStyle.BackColor = this.Theme.ColorE;
            }
            if (type.HasFlag(ColorType.F))
            {
                this.GridColor = this._theme.ColorF;
                this.ColumnHeadersDefaultCellStyle.BackColor   = this.Theme.ColorF;
                this.AlternatingRowsDefaultCellStyle.BackColor = this.Theme.ColorF;
            }
            if (type.HasFlag(ColorType.G))
            {
                this.BackgroundColor = this._theme.ColorG;
            }

            if (type.HasFlag(ColorType.FORE))
            {
                this.ColumnHeadersDefaultCellStyle.ForeColor = this.Theme.ForeColor;
                this.RowHeadersDefaultCellStyle.ForeColor    = this.Theme.ForeColor;
                this.ForeColor = this._theme.ForeColor;
            }
        }
Beispiel #2
0
        private void Draw(ColorType type)
        {
            if (type.HasFlag(ColorType.F))
            {
                this._borderColor        = this._theme.ColorF;
                this._gradientStartColor = this._theme.ColorF;
                this._gradientEndColor   = this._theme.ColorF;
            }
            if (type.HasFlag(ColorType.G))
            {
                //this._gradientEndColor = this._theme.ColorG;
            }
            if (type.HasFlag(ColorType.FORE))
            {
                this.ForeColor = this.Theme.ForeColor;
            }

            Invalidate();
        }
Beispiel #3
0
 private void Draw(ColorType type)
 {
     if (type.HasFlag(ColorType.A))
     {
         //if (this.TitleBarForeColor == null || this.TitleBarForeColor.IsEmpty)
         this.windowBar.ForeColor = this._theme.ColorA;
     }
     if (type.HasFlag(ColorType.D))
     {
         //if (this.TitleBarBackgroundColor == null || this.TitleBarBackgroundColor.IsEmpty)
         this.windowBar.BackColor = this._theme.ColorD;
     }
     if (type.HasFlag(ColorType.G))
     {
         this.BackColor = this._theme.ColorG;
     }
     if (type.HasFlag(ColorType.FORE))
     {
         this.ForeColor = this._theme.ForeColor;
     }
 }