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

FindReplaceBar: Fix "Replace (All)" buttons repositioning, improve "Hide" button visual feedback #103806

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arkology
Copy link
Contributor

@arkology arkology commented Mar 8, 2025

"Replace" and "Replace All" buttons now do not change their position depending on the availability of search results.
This is how it was before (look at "Replace (All)" buttons):

Godot_v4.4-stable_win64_z4HhUkw1Ah.mp4

This is how it looks now:

Godot_v4.4-stable_win64_SIZU2l6Nai.mp4

Additional changes:

  • VBoxContainer *vbc_lineedit declaration has been removed from the header because it is not used outside the FindReplaceBar constructor.
  • hide_button was changed from TextureButton to Button for consistency with other buttons - this allows to visually see the feedback when hovering and pressing and also not set its icon 3 times instead of 1. But at the same time, it takes up a little more space around the icon - I think it should be fine.
Before After
Godot_v4 4-stable_win64_hmNFa1foGS godot windows editor dev x86_64_mbDYuogE1l

…"Hide" button visual feedback

"Replace" and "Replace All" buttons now do not change their position depending on the availability of search results.
Additional changes:
- `VBoxContainer *vbc_lineedit` declaration has been removed from the header because it is not used outside the `FindReplaceBar` constructor.
- `hide_button` was changed from `TextureButton` to `Button` for consistency - this allows to visually see the feedback when hovering and pressing and also not set its icon 3 times instead of 1.
@arkology arkology requested a review from a team as a code owner March 8, 2025 11:06
@arkology arkology changed the title FindReplaceBar: Fix "Replace (All)" buttons repositioning, improve … FindReplaceBar: Fix "Replace (All)" buttons repositioning, improve "Hide" button visual feedback Mar 8, 2025
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.

1 participant