Skip to content

Commit 118f825

Browse files
committed
Improve styling of expand/collapse button in find/replace overlay #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 #2018
1 parent 0e79c18 commit 118f825

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay

1 file changed

+1
-1
lines changed

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ private void createMainContainer(final Composite parent) {
687687
}
688688

689689
private void createReplaceToggle() {
690-
replaceToggle = new Button(container, SWT.PUSH);
690+
replaceToggle = new Button(container, SWT.FLAT | SWT.PUSH);
691691
GridDataFactory.fillDefaults().grab(false, true).align(GridData.BEGINNING, GridData.FILL)
692692
.applyTo(replaceToggle);
693693
replaceToggle.setToolTipText(FindReplaceMessages.FindReplaceOverlay_replaceToggle_toolTip);

0 commit comments

Comments
 (0)