Skip to content

Fix LinkLabel contrast in Dark Mode - #14283

Merged
LeafShi1 merged 2 commits into
dotnet:mainfrom
LeafShi1:Fix_11935_-LinkLabel_contrast_in_DarkMode
Jul 1, 2026
Merged

LeafShi1 merged 2 commits into
dotnet:mainfrom
LeafShi1:Fix_11935_-LinkLabel_contrast_in_DarkMode

Conversation

@LeafShi1

@LeafShi1 LeafShi1 commented Feb 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #11935

Proposed changes

  • LinkColor (normal link state):

    • Dark Mode: Color.FromArgb(102, 178, 255) - A bright blue that contrasts well with dark backgrounds
  • ActiveLinkColor (when link is being clicked):

    • Dark Mode: Color.FromArgb(255, 128, 128) - Light red color for clear visual feedback
  • VisitedLinkColor (after link has been visited):

    • Dark Mode: Uses Color.FromArgb(200, 162, 255) - Light purple color for a visible visited state

Customer Impact

  • The LinkLabel can be displayed clearly in DarkMode

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

BeforeChanges.mp4

After

AfterChanges.mp4

Test methodology

  • Manually

Test environment(s)

  • .net 11.0.0-preview.2.26080.101
Microsoft Reviewers: Open in CodeFlow

@LeafShi1
LeafShi1 requested a review from a team as a code owner February 10, 2026 08:50
@github-actions github-actions Bot added the area-DarkMode Issues relating to Dark Mode feature label Feb 10, 2026
@codecov

codecov Bot commented Feb 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.18743%. Comparing base (9b546b7) to head (d67d48a).
⚠️ Report is 74 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #14283         +/-   ##
===================================================
+ Coverage   77.18395%   77.18743%   +0.00348%     
===================================================
  Files           3279        3279                 
  Lines         645138      645153         +15     
  Branches       47730       47730                 
===================================================
+ Hits          497943      497977         +34     
+ Misses        143503      143487         -16     
+ Partials        3692        3689          -3     
Flag Coverage Δ
Debug 77.18743% <72.72727%> (+0.00348%) ⬆️
integration 19.00673% <45.45455%> (+0.01609%) ⬆️
production 52.07229% <72.72727%> (+0.00910%) ⬆️
test 97.40479% <ø> (ø)
unit 49.49622% <72.72727%> (-0.00640%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates LinkLabel’s default link colors when Dark Mode is enabled to improve contrast and align with the reported usability issue (#11935).

Changes:

  • Adjust LinkColor default in Dark Mode to a brighter blue for better readability.
  • Adjust ActiveLinkColor default in Dark Mode to a red tone for clearer click/active feedback.
  • Update VisitedLinkColor default selection logic to use LinkUtilities.GetVisitedLinkColor() when Dark Mode is enabled.

@LeafShi1 LeafShi1 added the waiting-review This item is waiting on review by one or more members of team label Apr 22, 2026
@LeafShi1 LeafShi1 added this to the 11.0-preview7 milestone Jul 1, 2026
@LeafShi1
LeafShi1 merged commit 2cc6fac into dotnet:main Jul 1, 2026
8 checks passed
@dotnet-policy-service dotnet-policy-service Bot removed the waiting-review This item is waiting on review by one or more members of team label Jul 1, 2026
@LeafShi1 LeafShi1 added the releasenotes-candidate This issue is a candidate to be mentioned in the release notes, if the respective PR fixed it. label Jul 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-DarkMode Issues relating to Dark Mode feature releasenotes-candidate This issue is a candidate to be mentioned in the release notes, if the respective PR fixed it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dark Mode] Improve visual contrast of the LinkLabel control in dark mode

5 participants