Skip to content

Commit

Permalink
Improve styling of expand/collapse button in find/replace overlay ecl…
Browse files Browse the repository at this point in the history
…ipse-platform#2018

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 eclipse-platform#2018
  • Loading branch information
HeikoKlare committed Jul 4, 2024
1 parent a3540d7 commit 654f0d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,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 654f0d8

Please sign in to comment.