Skip to content
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

Improve lineargradient border for TextBox in Light/Dark themes #1006

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

koal44
Copy link
Contributor

@koal44 koal44 commented Mar 18, 2024

Pull request type

  • 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?

For multi-lined TextBoxes the border seems wrong. It's using a LinearGradientBrush with absolute mapping so that the upper border was painted in one brush and the the rest of the border was painted in another brush. for a single line TextBox all you would see is a border painted in the upper brush, but a multi-line TextBox would reveal the lower part of a different Brush with no transition.

Screenshot 2024-03-18 123348

What is the new behavior?

I figure the intent was for a smooth linear transition between the two brushes and that's what's coded in this PR.

Screenshot 2024-03-18 122959

@koal44 koal44 requested a review from pomianowski as a code owner March 18, 2024 20:51
@pomianowski pomianowski merged commit 4b34485 into lepoco:development Mar 19, 2024
2 of 4 checks passed
@koal44 koal44 deleted the enhancement/textbox-border branch March 19, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants