winforms icon indicating copy to clipboard operation
winforms copied to clipboard

[HC] The icon of "Browse..." in PropertyGrid control is unclear when non-selecting it

Open MelonWang1 opened this issue 2 years ago • 2 comments

.NET version

.NET 8.0.100-alpha.1.22451.15

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, it is not a regression issue

Issue description

Current Behavior: The icon of "Browse..." is unclear when non-selecting it. HC Aquatic theme: 11-Aquatic HC Dusk theme: 11-Dusk HC Night Sky theme: 11-Night Sky Expected Behavior: The icon of "Browse..." should be clear when non-selecting it. HC Aquatic theme: 22-Aquatic HC Dusk theme: 22-Dusk HC Night Sky theme: 22-Night sky

Steps to reproduce

  1. Turn on High Contrast theme in Windows settings
  2. Create a WinForms .NET core project
  3. Add a PropertyGrid control and resize it
  4. Choose it "SelectedObject"properties to "Form1"
  5. Ctrl+Shift+A add a Application Manifest File and uncomment windows 10
  6. Build and run
  7. Observe the icon of "Browse..."

More Info:

  1. This issue cannot repro on win11 HC Desert theme.
  2. This issue is repro on win10 machine but cannot repro on win10 HC White theme.
  3. This issue cannot repro on framework project.

MelonWang1 avatar Sep 02 '22 02:09 MelonWang1

@dmitrii-drobotov / @vladimir-krestov - what is the difference between the glyphs in .NET and .NET Framework? Do we do anything different on our end?

merriemcgaw avatar Sep 07 '22 00:09 merriemcgaw

@dmitrii-drobotov / @vladimir-krestov - what is the difference between the glyphs in .NET and .NET Framework? Do we do anything different on our end?

Yes, it was changed in #886. The difference is that now there is a white border around dots (left is the old icon, right is the current one): image

dmitrii-drobotov avatar Sep 08 '22 15:09 dmitrii-drobotov

@NikitaSemenovAkvelon - do you think we could reuse the same approach as in #8507 for this issue?

dmitrii-drobotov avatar Jan 23 '23 18:01 dmitrii-drobotov

@dmitrii-drobotov, yeah, I guess it would work here.

NikitaSemenovAkvelon avatar Jan 24 '23 04:01 NikitaSemenovAkvelon

Verified this issue in the latest .NET 8.0 SDK build: 8.0.100-preview.7.23323.19, it was fixed that icon of "Browse..." is clear now in both Win 10 and Win 11 OS High Contrast themes.

Win 10: W10-testresult

Win 11: W11-testresult

John-Qiao avatar Jun 25 '23 07:06 John-Qiao

Verified this on .NET 8.0 TP build in Win11 22H2 & Win10 22H2 OS: 8.0.100-preview.6.23328.9, issue was fixed, result is same as above test result.

MelonWang1 avatar Jun 30 '23 06:06 MelonWang1