Skip to content

Conversation

@Difegue
Copy link
Contributor

@Difegue Difegue commented Sep 24, 2024

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Card controls that use ControlElevationBrush show broken borders, as the gradient remains at the height of regular button/combobox controls.
Conversely, if Card controls are what are shown first, the ElevationBrush will not function properly for ComboBoxes and Buttons.

This also affects textboxes that are larger in height than the normal one. The replacement was to use a different ElevationBrush that does a full gradient, but this is non-canonical relative to WinUI.

I've also noticed that NumberBoxes/PasswordBoxes don't have a correct bottom border - The idea was probably to rely on the additional accent border instead, but that doesn't work as intended.

image

Issue Number: N/A

What is the new behavior?

  • ControlElevationBrush works properly.
  • TextElevationBrush has been fixed to match WinUI.
  • NumberBox/PasswordBox has been fixed to use the ElevationBrush properly alongside the additional accent border

Other information

Making the brush not-shared is necessary for it to work properly with content of any height
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request release labels Sep 24, 2024
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Dec 23, 2024
@pomianowski pomianowski merged commit b0a38e9 into lepoco:main Feb 1, 2025
pomianowski pushed a commit that referenced this pull request Feb 1, 2025
* Fix elevationBrushes to match WinUI

Making the brush not-shared is necessary for it to work properly with content of any height

* Fix elevation brush on ToggleButton as well
@Difegue Difegue deleted the fix-elevation-borders branch February 10, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. PR Pull request release ⭐ top pull request Top pull request. styles Topic is related to styles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants