You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Dark Mode] Improve visual contrast of the LinkLabel control in dark mode #11935
changed the title [-][Dark Mode] Improve visual contrast of the LinkLable control in dark mode[/-][+][Dark Mode] Improve visual contrast of the LinkLabel control in dark mode[/+]on Jul 15, 2025
Are there any further plans on this issue ?
I think the main problem is, that plain windows settings are used and these does not fit together ? so it is probably also somehow related to the windows team - it currently reads data from "internet explorer" colors via regsistry?
Of course workarounds are possible by deriving from LinkLabel,
but if there is chance to get this fixed we would like to stay as close to "pure Winforms" as possible..
@KlausLoeffelmann , @Zheng-Li01 : What do you think of the following approach (only tested from outside, never built winforms itself): Use the code that is already there for high contrast (3 of 4 highcontrast templates are dark in my win11) and handle it exactly the same way:
[SRCategory(nameof(SR.CatAppearance))]
[SRDescription(nameof(SR.LinkLabelLinkColorDescr))]
public Color LinkColor
{
get => _linkColor.IsEmpty
<< ? SystemInformation.HighContrast ? SystemColors.HotTrack : IELinkColor
>> ? SystemInformation.HighContrast||**SystemColorMode == SystemColorMode.Dark** ? SystemColors.HotTrack : IELinkColor
: _linkColor;
set
{
if (_linkColor != value)
{
_linkColor = value;
InvalidateLink(null);
}
}
}
Tested in the latest .NET 11 Preview 7 build: 11.0.100-preview.7.26352.103 + built private dls from the main branch of Winforms repo, it was fixed in DarkMode:
Activity
[-][Dark Mode] Improve visual contrast of the LinkLable control in dark mode[/-][+][Dark Mode] Improve visual contrast of the LinkLabel control in dark mode[/+]goldberger1441 commentedon Jan 9, 2026
Are there any further plans on this issue ?
I think the main problem is, that plain windows settings are used and these does not fit together ? so it is probably also somehow related to the windows team - it currently reads data from "internet explorer" colors via regsistry?
Of course workarounds are possible by deriving from LinkLabel,
but if there is chance to get this fixed we would like to stay as close to "pure Winforms" as possible..
@KlausLoeffelmann , @Zheng-Li01 : What do you think of the following approach (only tested from outside, never built winforms itself): Use the code that is already there for high contrast (3 of 4 highcontrast templates are dark in my win11) and handle it exactly the same way:
Olina-Zhang commentedon Jul 3, 2026
Tested in the latest .NET 11 Preview 7 build: 11.0.100-preview.7.26352.103 + built private dls from the main branch of Winforms repo, it was fixed in DarkMode: