-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Revert "[Windows] Fix default corner radius on Button" #10664
Conversation
dotnet#7128" This reverts commit ed53643.
Hey there @tj-devel709! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
||
if (radius >= 0) | ||
platformButton.Resources.SetValueForAllKey(CornerRadiusResourceKeys, WinUIHelpers.CreateCornerRadius(radius)); | ||
platformButton.Resources.SetValueForAllKey(CornerRadiusResourceKeys, WinUIHelpers.CreateCornerRadius(buttonStroke.CornerRadius)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the radius field instead of getting the value again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed!
Fixes #10644 |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
src/Core/tests/DeviceTests/Handlers/Window/WindowHandlerTests.Windows.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
The value of -1 means default rounding. So whatever the OS decides. |
Reverts #9515
#9515 Allows all the platforms to have the same default button border radius, but we want to keep the Windows default rounded corner style on buttons. Thanks @mattleibow and @PureWeen for spotting this!
Also peer programmed with @rachelkang!
Before the revert (no rounded corners):
![Screen Shot 2022-10-12 at 3 34 27 PM](https://user-images.githubusercontent.com/50846373/195646539-6cf42824-d891-4624-bac0-f41d76f797b2.png)
After the revert (rounded corners):
![Screen Shot 2022-10-13 at 10 43 38 AM](https://user-images.githubusercontent.com/50846373/195646615-06694eea-b157-4cc5-b981-4cbb1eb94697.png)
Fixes #10644