Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding border for focused ToolStripButton in PropertyGrid #4282

Conversation

SergeySmirnov-Akvelon
Copy link
Contributor

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon commented Nov 25, 2020

Fixes #4268

Proposed changes

  • Added a special method for high contrast mode that draws a black and white dashed border
  • Added a special method for normal mode that draws a dashed border

Customer Impact

Before fix:
100072081-c5886100-2e76-11eb-92f5-390882b13f65

After fix:
Normal mode:
Issue-4282-NormalMode
High Contrast 1:
Issue-4282-HC1

High Contrast 2:
Issue-4282-HC2

High Contrast Black:
Issue-4282-HCB

High Contrast White:
Issue-4282-HCW

Regression?

  • No

Risk

  • Minimal

Test methodology

  • Manually

Test environment(s)

  • Microsoft Windows [Version 10.0.19041.388]
  • .NET Core 5.0.100-rc.1.20420.14
Microsoft Reviewers: Open in CodeFlow

…ween focused and checked status dotnet#4268

Added a special method for high contrast mode that draws a black and white dashed border
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4268_ToolStripButtons_in_PropertyGrid_should_have_obvious_distinct_between_focused_and_checked_status branch from 0e3d5e1 to 6ffd171 Compare November 25, 2020 12:09
@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #4282 (6ffd171) into master (12b8059) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##              master       #4282   +/-   ##
=============================================
  Coverage   97.96185%   97.96185%           
=============================================
  Files            499         499           
  Lines         259010      259010           
  Branches        4569        4569           
=============================================
  Hits          253731      253731           
  Misses          4473        4473           
  Partials         806         806           
Flag Coverage Δ
Debug 97.96185% <ø> (ø)
production 100.00000% <ø> (ø)
test 97.96185% <ø> (ø)

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

@merriemcgaw
Copy link
Member

That looks reasonable to me.

@RussKie
Copy link
Member

RussKie commented Nov 26, 2020

Have you tested with visual styles off?

@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label Nov 26, 2020
@SergeySmirnov-Akvelon
Copy link
Contributor Author

This is how it looks in normal mode when styles are disabled:
Issue-4282-withoutstyles

For high contrast mode, I saw no difference with styles on and off.

@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Nov 26, 2020
@RussKie RussKie merged commit acdad50 into dotnet:master Nov 26, 2020
@RussKie RussKie deleted the Issue-4268_ToolStripButtons_in_PropertyGrid_should_have_obvious_distinct_between_focused_and_checked_status branch November 26, 2020 07:47
@ghost ghost added this to the 6.0 Preview1 milestone Nov 26, 2020
leftColor: Color.Black, leftWidth: 1, leftStyle: ButtonBorderStyle.Dashed, // left
topColor: Color.Black, topWidth: 1, topStyle: ButtonBorderStyle.Dashed, // top
rightColor: Color.Black, rightWidth: 1, rightStyle: ButtonBorderStyle.Dashed, // right
bottomColor: Color.Black, bottomWidth: 1, bottomStyle: ButtonBorderStyle.Dashed); // bottom;*/
Copy link
Member

Choose a reason for hiding this comment

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

what is the closing comment char doing in the end of this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a typo, I will fix it in #4193

@dotnet dotnet locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants