Skip to content

Commit

Permalink
fix dotnet#12663 [Accessibility][High Contrast] ToolStrip grip icon c…
Browse files Browse the repository at this point in the history
…olour contrast is less than 4.5:1 in Normal Mode and HC Desert mode (dotnet#12682)
  • Loading branch information
Epica3055 authored and Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) committed Jan 9, 2025
1 parent 8ef360e commit 9024c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected override void OnRenderGrip(ToolStripGripRenderEventArgs e)
startY += 4;
}

g.FillRectangles(SystemBrushes.ControlLight, shadowRects);
g.FillRectangles(SystemBrushes.ControlText, shadowRects);
}
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ protected override void OnRenderGrip(ToolStripGripRenderEventArgs e)
shadowRects[i].Offset(xOffset, -1);
}

using var gripDarkBrush = ColorTable.GripDark.GetCachedSolidBrushScope();
g.FillRectangles(gripDarkBrush, shadowRects);
using var controlTextBrush = SystemColors.ControlText.GetCachedSolidBrushScope();
g.FillRectangles(controlTextBrush, shadowRects);
}
}

Expand Down

0 comments on commit 9024c4f

Please sign in to comment.