Skip to content

Commit

Permalink
Improve styling of expand/collapse button in find/replace overlay #2018
Browse files Browse the repository at this point in the history
The button for expanding the find/replace overlay to show the replace
bar it quite large on MacOS and also changes its size upon different
events, such activating options and scrolling in the editor target.

With this change, the button style is changed to "FLAT". It results in a
less space-consuming layout and fixes its size so that it does not
resize on events like scrolling in the target editor.

Fixes #2018
  • Loading branch information
HeikoKlare committed Jul 7, 2024
1 parent 991408d commit 0b3229b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ private void createMainContainer(final Composite parent) {
}

private void createReplaceToggle() {
replaceToggle = new Button(container, SWT.PUSH);
replaceToggle = new Button(container, SWT.FLAT | SWT.PUSH);
GridDataFactory.fillDefaults().grab(false, true).align(GridData.BEGINNING, GridData.FILL)
.applyTo(replaceToggle);
replaceToggle.setToolTipText(FindReplaceMessages.FindReplaceOverlay_replaceToggle_toolTip);
Expand Down

0 comments on commit 0b3229b

Please sign in to comment.