Skip to content

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

Merged
pomianowski merged 1 commit intolepoco:developmentfrom
koal44:enhancement/textbox-border
Mar 19, 2024
Merged

Improve lineargradient border for TextBox in Light/Dark themes #1006
pomianowski merged 1 commit intolepoco:developmentfrom
koal44:enhancement/textbox-border

Conversation

@koal44
Copy link
Copy Markdown
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
@koal44 koal44 deleted the enhancement/textbox-border branch March 19, 2024 13:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants