Add clear (x) button to title bar search box#5185
Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits intoJul 23, 2026
Merged
Conversation
Copilot started reviewing on behalf of
Gabriel Dufresne (GabrielDuf)
July 23, 2026 17:49
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a title-bar search clear button that appears when text is present.
Changes:
- Adds an overlaid clear button and adjusts search-box padding.
- Clears and refocuses the search box when clicked.
- Adds localized tooltip and accessibility labels, though the translation key is missing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/UniGetUI.Avalonia/Views/MainWindow.axaml |
Adds and styles the clear button. |
src/UniGetUI.Avalonia/Views/MainWindow.axaml.cs |
Implements clear-and-refocus behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Marc-André Moreau (mamoreau-devolutions)
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the search box in
MainWindowby adding a clear ("✕") button, making it easier for users to clear their search input. The button only appears when there is text in the search box, and clicking it clears the input and refocuses the search box. The padding of the search box was also adjusted to accommodate the new button.Search box usability improvements:
ClearSearchButton) to the search box inMainWindow.axaml, which appears only when the search box contains text and allows users to quickly clear the input.ClearSearchBox_Clickevent handler inMainWindow.axaml.csto clear the search text and refocus the search box when the clear button is clicked.