示例#1
0
        /// <summary>
        /// Define the color blend used to fill the bar of the scrollbar, in pressed state.
        /// </summary>
        public static ColorBlend barPressedBlend(Drawing.ColorTheme theme, int alpha)
        {
            ColorBlend result = new ColorBlend();

            Color[] colors = new Color[4];
            float[] pos    = new float[4];
            pos[0] = 0f;
            pos[1] = 0.5f;
            pos[2] = 0.5f;
            pos[3] = 1f;
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                colors[0] = Color.FromArgb(alpha, 206, 237, 250);
                colors[1] = Color.FromArgb(alpha, 181, 228, 247);
                colors[2] = Color.FromArgb(alpha, 111, 202, 240);
                colors[3] = Color.FromArgb(alpha, 102, 106, 221);
                break;

            default:
                colors[0] = Color.FromArgb(alpha, 156, 187, 229);
                colors[1] = Color.FromArgb(alpha, 164, 199, 246);
                colors[2] = Color.FromArgb(alpha, 110, 166, 240);
                colors[3] = Color.FromArgb(alpha, 180, 209, 247);
                break;
            }
            result.Colors    = colors;
            result.Positions = pos;
            return(result);
        }
示例#2
0
        /// <summary>
        /// Define the color blend used to fill the bar of the scrollbar, in hlited state.
        /// </summary>
        public static ColorBlend barHLitedBlend(Drawing.ColorTheme theme, int alpha)
        {
            ColorBlend result = new ColorBlend();

            Color[] colors = new Color[4];
            float[] pos    = new float[4];
            pos[0] = 0f;
            pos[1] = 0.5f;
            pos[2] = 0.5f;
            pos[3] = 1f;
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                colors[0] = Color.FromArgb(alpha, 227, 244, 252);
                colors[1] = Color.FromArgb(alpha, 214, 238, 251);
                colors[2] = Color.FromArgb(alpha, 169, 219, 246);
                colors[3] = Color.FromArgb(alpha, 156, 202, 227);
                break;

            default:
                colors[0] = Color.FromArgb(alpha, 190, 208, 232);
                colors[1] = Color.FromArgb(alpha, 202, 223, 250);
                colors[2] = Color.FromArgb(alpha, 170, 203, 246);
                colors[3] = Color.FromArgb(alpha, 211, 228, 250);
                break;
            }
            result.Colors    = colors;
            result.Positions = pos;
            return(result);
        }
示例#3
0
        /// <summary>
        /// Define the color blend used to fill the bar of the scrollbar, in normal state.
        /// </summary>
        public static ColorBlend barNormalBlend(Drawing.ColorTheme theme, int alpha)
        {
            ColorBlend result = new ColorBlend();

            Color[] colors = new Color[4];
            float[] pos    = new float[4];
            pos[0] = 0f;
            pos[1] = 0.5f;
            pos[2] = 0.5f;
            pos[3] = 1f;
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                colors[0] = Color.FromArgb(alpha, 245, 245, 245);
                colors[1] = Color.FromArgb(alpha, 233, 233, 235);
                colors[2] = Color.FromArgb(alpha, 217, 218, 220);
                colors[3] = Color.FromArgb(alpha, 192, 192, 196);
                break;

            default:
                colors[0] = Color.FromArgb(alpha, 225, 227, 230);
                colors[1] = Color.FromArgb(alpha, 225, 229, 238);
                colors[2] = Color.FromArgb(alpha, 200, 212, 225);
                colors[3] = Color.FromArgb(alpha, 182, 196, 216);
                break;
            }
            result.Colors    = colors;
            result.Positions = pos;
            return(result);
        }
示例#4
0
        /// <summary>
        /// Define the color blend used to fill the background of the scrollbar.
        /// </summary>
        public static ColorBlend backgroundBlend(Drawing.ColorTheme theme, int alpha)
        {
            ColorBlend result = new ColorBlend();

            Color[] colors = new Color[3];
            float[] pos    = new float[3];
            pos[0] = 0f;
            pos[1] = 0.3f;
            pos[2] = 1f;
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                colors[0] = Color.FromArgb(alpha, 227, 227, 227);
                colors[1] = Color.FromArgb(alpha, 237, 237, 237);
                colors[2] = Color.FromArgb(alpha, 242, 242, 242);
                break;

            default:
                colors[0] = Color.FromArgb(alpha, 149, 176, 210);
                colors[1] = Color.FromArgb(alpha, 126, 157, 198);
                colors[2] = Color.FromArgb(alpha, 124, 155, 193);
                break;
            }
            result.Colors    = colors;
            result.Positions = pos;
            return(result);
        }
示例#5
0
文件: ListItem.cs 项目: orf53975/src
 /// <summary>
 /// Represent a border pen for pressed item in a list.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen.</returns>
 public static Pen PressedBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(104, 140, 175)));
     }
     return(new Pen(Color.Black));
 }
示例#6
0
文件: ListItem.cs 项目: orf53975/src
 /// <summary>
 /// Represent a border pen for selected and highlighted item in a list.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen.</returns>
 public static Pen SelectedHLiteBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(132, 172, 221)));
     }
     return(new Pen(Color.Black));
 }
示例#7
0
文件: ListItem.cs 项目: orf53975/src
 /// <summary>
 /// Represent a border pen for highlighted item in a list.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen.</returns>
 public static Pen HLitedBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(185, 215, 252)));
     }
     return(new Pen(Color.Black));
 }
示例#8
0
文件: Column.cs 项目: orf53975/src
 /// <summary>
 /// Represent a pen for a normal column border.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen</returns>
 public static Pen NormalBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(213, 213, 213)));
     }
     return(new Pen(Color.Black));
 }
示例#9
0
文件: Column.cs 项目: orf53975/src
 public static SolidBrush DisabledTextBrush(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new SolidBrush(Color.FromArgb(118, 118, 118)));
     }
     return(null);
 }
示例#10
0
文件: Column.cs 项目: orf53975/src
 public static SolidBrush TextBrush(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new SolidBrush(Color.FromArgb(62, 106, 170)));
     }
     return(null);
 }
示例#11
0
文件: ListItem.cs 项目: orf53975/src
 /// <summary>
 /// Represent a border pen for selected item in a focused list.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen.</returns>
 public static Pen SelectedBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(177, 217, 229)));
     }
     return(new Pen(Color.Black));
 }
示例#12
0
文件: Column.cs 项目: orf53975/src
 /// <summary>
 /// Represent a pen for an active column border.
 /// </summary>
 /// <param name="theme">Theme used to paint.</param>
 /// <returns>Pen</returns>
 public static Pen ActiveBorderPen(Drawing.ColorTheme theme)
 {
     switch (theme)
     {
     case Drawing.ColorTheme.Blue:
         return(new Pen(Color.FromArgb(147, 201, 227)));
     }
     return(new Pen(Color.Black));
 }
示例#13
0
        /// <summary>
        /// Gets Pen object to draw the bar's border of the scrollbar, in hlited state.
        /// </summary>
        public static Pen barHLitedBorderPen(Drawing.ColorTheme theme, int alpha)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                return(new Pen(Color.FromArgb(alpha, 60, 127, 177)));

            default:
                return(new Pen(Color.FromArgb(alpha, 60, 110, 176)));
            }
        }
示例#14
0
        /// <summary>
        /// Gets Pen object to draw the bar's border of the scrollbar, in normal state.
        /// </summary>
        public static Pen barNormalBorderPen(Drawing.ColorTheme theme, int alpha)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                return(new Pen(Color.FromArgb(alpha, 151, 151, 151)));

            default:
                return(new Pen(Color.FromArgb(alpha, 89, 105, 145)));
            }
        }
示例#15
0
        /// <summary>
        /// Gets Pen object to draw the bar's border of the scrollbar, in pressed state.
        /// </summary>
        public static Pen barPressedBorderPen(Drawing.ColorTheme theme, int alpha)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                return(new Pen(Color.FromArgb(alpha, 24, 89, 138)));

            default:
                return(new Pen(Color.FromArgb(alpha, 23, 73, 138)));
            }
        }
示例#16
0
        public static SolidBrush PlacementBrush(Drawing.ColorTheme theme)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
                return(new SolidBrush(Color.FromArgb(233, 238, 238)));

            case Drawing.ColorTheme.BlackBlue:
                return(new SolidBrush(Color.FromArgb(125, 158, 201)));
            }
            return(new SolidBrush(Color.Black));
        }
示例#17
0
        public static SolidBrush SeparatorBrush(Drawing.ColorTheme theme)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
                return(new SolidBrush(Color.FromArgb(221, 231, 238)));

            case Drawing.ColorTheme.BlackBlue:
                return(new SolidBrush(Color.FromArgb(163, 188, 218)));
            }
            return(new SolidBrush(Color.Black));
        }
示例#18
0
        public static SolidBrush BackgroundBrush(Drawing.ColorTheme theme)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
                return(new SolidBrush(Color.FromArgb(250, 250, 250)));

            case Drawing.ColorTheme.BlackBlue:
                return(new SolidBrush(Color.FromArgb(84, 84, 84)));
            }
            return(new SolidBrush(Color.Black));
        }
示例#19
0
        public static SolidBrush NormalTextBrush(Drawing.ColorTheme theme)
        {
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
                return(new SolidBrush(Color.FromArgb(85, 119, 163)));

            case Drawing.ColorTheme.BlackBlue:
                return(new SolidBrush(Color.FromArgb(255, 255, 255)));
            }
            return(new SolidBrush(Color.Black));
        }
示例#20
0
文件: ListItem.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for selected and highlighted item.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <returns>ColorBlend.</returns>
        public static ColorBlend SelectedHLiteBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[2];
            float[]    pos    = new float[2];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(220, 235, 252);
                colors[1] = Color.FromArgb(193, 219, 252);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#21
0
文件: ListItem.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for pressed item.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <returns>ColorBlend.</returns>
        public static ColorBlend PressedBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[2];
            float[]    pos    = new float[2];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(160, 189, 227);
                colors[1] = Color.FromArgb(255, 255, 255);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#22
0
        /// <summary>
        /// Define the color blend used to fill the arrow of the scroll bar.
        /// </summary>
        public static ColorBlend arrowBlend(Drawing.ColorTheme theme, int alpha)
        {
            ColorBlend result = new ColorBlend();

            Color[] colors = new Color[2];
            float[] pos    = new float[2];
            pos[0] = 0f;
            pos[1] = 1f;
            switch (theme)
            {
            case Drawing.ColorTheme.Silver:
                colors[0] = Color.FromArgb(alpha, 69, 69, 69);
                colors[1] = Color.FromArgb(alpha, 198, 198, 198);
                break;

            default:
                colors[0] = Color.FromArgb(alpha, 110, 126, 166);
                colors[1] = Color.FromArgb(alpha, 66, 75, 99);
                break;
            }
            result.Colors    = colors;
            result.Positions = pos;
            return(result);
        }
示例#23
0
文件: Column.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for a highlited column.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <return>ColorBlend</return>
        public static ColorBlend HLitedBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[4];
            float[]    pos    = new float[4];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 0.4F;
            pos[2] = 0.4F;
            pos[3] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(227, 247, 255);
                colors[1] = Color.FromArgb(227, 247, 255);
                colors[2] = Color.FromArgb(189, 237, 255);
                colors[3] = Color.FromArgb(183, 231, 251);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#24
0
文件: Column.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for a selected column.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <return>ColorBlend</return>
        public static ColorBlend SelectedBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[4];
            float[]    pos    = new float[4];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 0.4F;
            pos[2] = 0.4F;
            pos[3] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(242, 249, 252);
                colors[1] = Color.FromArgb(242, 249, 252);
                colors[2] = Color.FromArgb(225, 241, 249);
                colors[3] = Color.FromArgb(216, 236, 246);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#25
0
文件: Column.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for a pressed column.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <return>ColorBlend</return>
        public static ColorBlend PressedBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[4];
            float[]    pos    = new float[4];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 0.4F;
            pos[2] = 0.4F;
            pos[3] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(188, 228, 249);
                colors[1] = Color.FromArgb(188, 228, 249);
                colors[2] = Color.FromArgb(141, 214, 247);
                colors[3] = Color.FromArgb(138, 209, 245);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#26
0
文件: Column.cs 项目: orf53975/src
        /// <summary>
        /// Represent a color blend for a normal column.
        /// </summary>
        /// <param name="theme">Theme used to paint.</param>
        /// <return>ColorBlend</return>
        public static ColorBlend NormalBlend(Drawing.ColorTheme theme)
        {
            Color[]    colors = new Color[4];
            float[]    pos    = new float[4];
            ColorBlend blend  = new ColorBlend();

            pos[0] = 0.0F;
            pos[1] = 0.4F;
            pos[2] = 0.4F;
            pos[3] = 1.0F;
            switch (theme)
            {
            case Drawing.ColorTheme.Blue:
            case Drawing.ColorTheme.BlackBlue:
                colors[0] = Color.FromArgb(255, 255, 255);
                colors[1] = Color.FromArgb(255, 255, 255);
                colors[2] = Color.FromArgb(247, 248, 250);
                colors[3] = Color.FromArgb(241, 242, 244);
                break;
            }
            blend.Colors    = colors;
            blend.Positions = pos;
            return(blend);
        }
示例#27
0
 public static Pen SeparatorPen(Drawing.ColorTheme theme)
 {
     return(new Pen(Color.FromArgb(197, 197, 197)));
 }
示例#28
0
 public static ColorBlend arrowBlend(Drawing.ColorTheme theme)
 {
     return(arrowBlend(theme, 255));
 }
示例#29
0
 public static ColorBlend backgroundBlend(Drawing.ColorTheme theme)
 {
     return(backgroundBlend(theme, 255));
 }
示例#30
0
 public static Pen barHLitedBorderPen(Drawing.ColorTheme theme)
 {
     return(barHLitedBorderPen(theme, 255));
 }