Skip to content

Commit 7064554

Browse files
committed
fix #12365 [Accessibility] The text "Document does not contain any pages" in printPreviewControl has low color contrast (#12368)
* fix #12365 [Accessibility] The text "Document does not contain any pages" in printPreviewControl has low color contrast * use SystemColor instead of hardcode
1 parent 2d1768d commit 7064554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintPreviewControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private void CalculatePageInfo()
592592

593593
private void DrawMessage(Graphics g, Rectangle rect, bool isExceptionPrinting)
594594
{
595-
using var brush = ForeColor.GetCachedSolidBrushScope();
595+
using var brush = SystemColors.ControlText.GetCachedSolidBrushScope();
596596

597597
using StringFormat format = new()
598598
{

0 commit comments

Comments
 (0)