-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix the SmartRename button regressions #75134
Conversation
…oyang/fixRenameButton
@@ -87,7 +87,6 @@ | |||
</Trigger> | |||
<Trigger Property="IsKeyboardFocused" Value="true"> | |||
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static vsui:CommonControlsColors.ButtonBorderFocusedBrushKey}}"/> | |||
<Setter Property="Background" Value="{DynamicResource {x:Static vsui:CommonControlsColors.ButtonFocusedBrushKey}}"/> |
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.
Why this is not needed?
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.
@Cosifne Hi, we want to make it consistent with the panel expand case (Purple), and different with the panel collapse case. It decreases the confusion.
After removing the focus background, the button will be purple when focused. And the light border can indicate whether the button is focused.
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.
Could you verify if the color still looks correct when in light/blue theme?
This PR fix the SmartRename button regressions: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2112161/
When
IsAutomaticSuggestionsEnabled
is ONButton toggled => suggestion panel collapse
Button not toggled = > suggestion panel expand
2 Button UI when Hover / Focus / toggle / click
Click => lighter border + purple background (indicate
IsAutomaticSuggestionsEnabled
is ON)Focus => lighter border
Toggle => lighter border + grey background
Hover => grey background
In blue and light theme