replace PathIcon with Button in ClosableTag #690
Merged
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 updates the
ClosableTag
component in theTagInput
control to improve its design and functionality. The key changes include replacing thePathIcon
close button with aButton
, updating styles for hover and pressed states, and simplifying the command handling logic.Design and UI Improvements:
ClosableTag
component inTagInput.axaml
to enhance development and visualization. (src/Ursa.Themes.Semi/Controls/TagInput.axaml
, src/Ursa.Themes.Semi/Controls/TagInput.axamlR5-R7)ClosableTag
template to replace thePathIcon
close button with a styledButton
, improving customization and usability. (src/Ursa.Themes.Semi/Controls/TagInput.axaml
, src/Ursa.Themes.Semi/Controls/TagInput.axamlL118-R137)src/Ursa.Themes.Semi/Controls/TagInput.axaml
, src/Ursa.Themes.Semi/Controls/TagInput.axamlR149-R154)Codebase Simplification:
TemplatePart
attribute inClosableTag.cs
to reflect the replacement ofPathIcon
withButton
. (src/Ursa/Controls/TagInput/ClosableTag.cs
, src/Ursa/Controls/TagInput/ClosableTag.csL6-R14)OnApplyTemplate
method by removing thePointerPressed
event handling logic, as theButton
now directly supports commands. (src/Ursa/Controls/TagInput/ClosableTag.cs
, src/Ursa/Controls/TagInput/ClosableTag.csL27-R27)