-
-
Notifications
You must be signed in to change notification settings - Fork 77
[STYLE] Updated focus visuals #282
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
base: main
Are you sure you want to change the base?
Conversation
NotYoojun
left a comment
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.
|
Hey @NotYoojun , can u check if the new corner radius is correct ? |
|
Hey @GID0317 , can u take a look now ? |
|
Hi, for the workaround resolves the clipping issue perhaps @NotYoojun has any suggestion for this? For the main clipping i think moving padding from scroll viewer to SimpleStackPanel fix the issue for outer settings expander: But the inner one is still affected like what mou-haz said: Also, I noticed the expander non rounded point (expanded state) get effected by the change. can you please take a look mou-haz? Some also seems not effected on gallery side for expander expand mode: Calendar View and Picker: TreeView seems like need some adjustment too to Match with WinUI: MenuBar and MenuFlyout Focus : Regarding the other issue you mentioned after testing, it looks great now |
e8f93c5 to
667d4e3
Compare
|
@GID0317 , can u take a look now ? i think all mentioned controls except the datepicker are fine in this PR. |
|
@GID0317 , they are fixed now |
|
@GID0317 context menu shoud be fixed now |
|
@GID0317 i think it's correct now. |
|
Hi, after testing, I think I found a strange bug. on the first time when we do not interact with the Combo box its working but if we are interacting with it the rounded corners revert back: Screen.Recording.2025-07-26.025302.mp4 |
|
using the #269 with this should fix the problem. |
Okay then, I think it's great now. Thanks for your hard work on this issue! |
|
@Jack251970 Thanks for your feedback and review. |
timepicker focus visual improved calender view focus visuals assign focus visual target focus visual target for: hyperlink button radio button button command bar menu items toggle switch improve focus visuals toggle switch command bar updated corner radius fix button focus visual Fix FocusVisual clipped by scrollviewer fix settingscard clipped tree view focus visuals improved focus visuals radio menu items focus visuals menu items focus visuals tabitem focus visuals fix treeview focus visuals generalizing AdornerDecorator context menu item focus visuals combobox focus visuals
It works well for me, thanks for your work!❤️ There still exists one small bug: When WinUI3:
UI.WPF.Modern:
Thanks for your work again! |
NotYoojun
left a comment
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.
I agree with Ye, let's get these things fixed first.
|
I can confirm this happen on my side too: Recording.2025-09-18.163338.mp4 |
|
@GID0317 For the second issue (From I noticed that you have create an issue for it #356. Good👍 |
|
@Jack251970 Thanks for your review. |
It works as expected. Thanks for your work! |
|
@Jack251970 You are welcome. |
|
Thank you! I can confirm that the issue with #316 is resolved |
|
@GID0317 You are welcome. Thanks for the review. |
|
@mou-haz I found one strange issue. WinUI3: Between these two elements, you can directly switch the focus.
UI.WPF.Modern: Between these two elements, you need to press tab again to switch the focus.
|
|
It seems to be related to my recently opened issue in #358, and it can also be reproduced on one of the current stable versions |
fixes the problem that the hyperlink (even when textblock is hidden) was stealing the focus, giving unexpected focus switch results.
|
@Jack251970 @GID0317 I'll try to look into these. |
|
Hey @Jack251970, can u see if the problem still happens ? |
It works perfectly! Thanks for your work! |
Jack251970
left a comment
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.
It looks very good to me!
Thanks for the review. You are welcome. |
|
As far as I've found, there's one major issue - you probably should not remove ui:ElevationBorders in SettingsControls, they are always essential when creating elevated surfaces (e.g. clickable) After removing that SettingsControls get much more boring (just like how WpfUi looks). I'll look into more details later. Sorry for the delay, I've got too much work to do in these months. |
|
Hey @NotYoojun , thanks for the review. |






































































fix #148
focus visual now use control's corner radius.
improvement of focus target to various controls