System.Windows.Forms.ControlPaint.Dark(System.Drawing.Color)

Here are the examples of the csharp api class System.Windows.Forms.ControlPaint.Dark(System.Drawing.Color) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

26 Examples 7

1. Example

Project: Krypton
Source File: DesignTimeDraw.cs
public static void DrawFlapArea(KryptonRibbon ribbon,
                                        RenderContext context,
                                        Rectangle clientRect,
                                        PaletteState state)
        {
            Color c;

            if (state == PaletteState.Normal)
                c = ControlPaint.Dark(ribbon.StateCommon.RibbonGeneral.GetRibbonGroupSeparatorDark(PaletteState.Normal));
            else
                c = ribbon.StateCommon.RibbonGroupButton.Back.GetBackColor1(PaletteState.Tracking);

            // Draw border around entire area
            Rectangle drawRect = clientRect;
            drawRect.Width -= DESIGN_SEP_WIDTH;
            drawRect.Height--;
            drawRect.X++;
            using (Pen darkPen = new Pen(c))
                context.Graphics.DrawRectangle(darkPen, drawRect);

            // Draw the flap in the dark color
            drawRect.Width = DESIGN_FLAP_WIDTH - 2;
            using (SolidBrush darkBrush = new SolidBrush(c))
                context.Graphics.FillRectangle(darkBrush, drawRect);
        }

2. Example

Project: CMS
Source File: ColorExtensions.cs
public static Color Dark(this Color color)
        {
            return ControlPaint.Dark(color);
        }

3. Example

Project: dp2
Source File: ItemEditControlBase.cs
void ResetColor(Label color, Control edit)
        {
            EditLineState newState = color.Tag /n ..... /n //View Source file for more details /n }

4. Example

Project: kit-kat
Source File: MainForm.cs
private void ThemeUpdater()
        {
            #region Main
            BackColor = Settings.Defa/n ..... /n //View Source file for more details /n }

5. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingArrow(RenderContext context,
                                          C/n ..... /n //View Source file for more details /n }

6. Example

Project: SquareOne
Source File: HRuler.cs
protected override void OnPaintBackground(PaintEventArgs e)
    {
      // paint background
      Form parentForm = _textArea.MotherTextEditorControl.ParentForm;
      Color backColor = (parentForm != null) ? parentForm.BackColor : SystemColors.Control;

      using (SolidBrush brush = new SolidBrush(backColor))
        e.Graphics.FillRectangle(brush, ClientRectangle);

      using (Pen pen = new Pen(ControlPaint.Dark(backColor)))
        e.Graphics.DrawLine(pen, ClientRectangle.Left, ClientRectangle.Bottom - 1, ClientRectangle.Right, ClientRectangle.Bottom -1);
    }

7. Example

Project: Krypton
Source File: ViewDrawRibbonContextTitle.cs
public override void RenderBefore(RenderContext context)
        {
            // Office 2010 draws /n ..... /n //View Source file for more details /n }

8. Example

Project: Krypton
Source File: RenderGlassHelpers.cs
public static IDisposable DrawBackGlassFade(RenderContext context,
                                 /n ..... /n //View Source file for more details /n }

9. Example

Project: dp2
Source File: PlusButton.cs
protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

          /n ..... /n //View Source file for more details /n }

10. Example

Project: SquareOne
Source File: IconMargin.cs
protected override void OnPaint(PaintEventArgs eventArgs)
    {
      Graphics g = eventArgs.Graphic/n ..... /n //View Source file for more details /n }

11. Example

Project: Krypton
Source File: ViewDrawRibbonContextTitle.cs
public override void Layout(ViewLayoutContext context)
        {
            Debug.Assert(context !=/n ..... /n //View Source file for more details /n }

12. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingSquaresMiddle(Graphics g,
                                              /n ..... /n //View Source file for more details /n }

13. Example

Project: Krypton
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassCheckedTrackingPercent(RenderContext context,
              /n ..... /n //View Source file for more details /n }

14. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingSquaresLeft(Graphics g,
                                                /n ..... /n //View Source file for more details /n }

15. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingSquaresRight(Graphics g,
                                               /n ..... /n //View Source file for more details /n }

16. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingSquaresTop(Graphics g,
                                               Co/n ..... /n //View Source file for more details /n }

17. Example

Project: Krypton
Source File: RenderStandard.cs
private void DrawDragDockingSquaresBottom(Graphics g,
                                              /n ..... /n //View Source file for more details /n }

18. Example

Project: ElectronicObserver
Source File: ImageLabel.cs
protected override void OnPaint(PaintEventArgs e)
		{

			Rectangle basearea = new Rectangle(Padding/n ..... /n //View Source file for more details /n }

19. Example

Project: Krypton
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassPressedPercent(RenderContext context,
                      /n ..... /n //View Source file for more details /n }

20. Example

Project: Krypton
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassCheckedPercent(RenderContext context,
                      /n ..... /n //View Source file for more details /n }

21. Example

Project: dp2
Source File: Field.cs
internal void DrawCell(Graphics g,
			int nCol,
			Rectangle rect)
		{
			Debug.Assert(g != null,"g?/n ..... /n //View Source file for more details /n }

22. Example

Project: JustUO
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph)
        {
            SolidBrush brsFont = null;
            F/n ..... /n //View Source file for more details /n }

23. Example

Project: runuo
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph)
		{
			SolidBrush brsFont = null;
			Font valFont = null;
			S/n ..... /n //View Source file for more details /n }

24. Example

Project: ServUO
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph)
        {
            SolidBrush brsFont = null;
            F/n ..... /n //View Source file for more details /n }

25. Example

Project: LaserGRBL
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }

26. Example

Project: Repetier-Host
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }