-
Notifications
You must be signed in to change notification settings - Fork 635
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
Imperfect looks on the Color controls #1561
Comments
@Jay-o-Way Something you'd like to pick up? |
@niels9001 I think these lines are unused and can be removed, which means the two top Grids can be removed. Can you confirm?
|
Yes, even the root grid can be removed here?
I think we are using that columndefinition for the border? |
Ah yes, the ShowSeparator. Thing is - in practice it isn't used, so I already removed it (locally) when working on this. Therefore the ColumnDefinition is obsolete. |
Just looking at the code.. it's turned on by default: And in 8 instances we turn it off https://github.com/search?q=repo%3Amicrosoft%2FWinUI-Gallery%20ShowSeparator&type=code? So I think we are using it? |
This comment was marked as outdated.
This comment was marked as outdated.
@Jay-o-Way It is used in some occasions, and it is visible for me? I think, since we are use it here and there to make the default be |
I see. Focussed on the declared ("false") values and missed the instances where it wasn't declared. 🫣 Ugh, my brain keeps thinking more and more things. Maybe, one day, we can combine all the issues with these Color things, and refactor the whole thing..? Using a very large UserControl with bound data is a big work, but might solve a couple of issues. |
This was per design spec. We only need it when 2 neighboring colors are similar to provide the right contrast. I don't think there's a problem here that needs to be solves? Having it default to On the CornerRadius issues - yes, we should remove any hardcoded 4px radiuses if those are defined. Not sure why those were defined in the first place though 😨. (Could be that the grid style was added later, and we missed removing a few of these). |
I've been digging into this now, but the corners are weird. Looks like it's not a matter of a property, but more of the rendering... |
Which version of the app?
WinUI 3 Gallery
Description
Minor issue.
CornerRadius="4"
is used. Not only is it hard-coded, it's also the incorrect value for these cases.Screenshots
Note
A Grid with a CornerRadius (Style
GalleryTileGridStyle
uses OverlayCornerRadius) does not clip the content. A Border does. That means we can envelope each Grid with a Border. the accompanying Style should then be set on the Border, in place of the Grid.Issue is: GalleryTileGridStyle is used throughout the DesignGuidance and Accessibility pages.
The text was updated successfully, but these errors were encountered: