Skip to content

Commit 8de60a3

Browse files
committed
Use dialog font in editor drop-down
The editor chevron drop-down inherited the SWT system font, which on many platforms looks out of place compared to the rest of the IDE chrome. Switch the filter text and the table to JFaceResources getDialogFont() so the list matches the Quick Switch Editor (Ctrl+E) dialog and other workbench dialogs.
1 parent 22d9cd1 commit 8de60a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/AbstractTableInformationControl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public AbstractTableInformationControl(Shell parent, int shellStyle,
134134
fTableViewer = createTableViewer(fComposite, controlStyle);
135135

136136
final Table table = fTableViewer.getTable();
137+
table.setFont(JFaceResources.getDialogFont());
137138
table.addKeyListener(KeyListener.keyPressedAdapter(e -> {
138139
switch (e.keyCode) {
139140
case SWT.ESC:
@@ -314,10 +315,11 @@ public TableViewer getTableViewer() {
314315

315316
protected Text createFilterText(Composite parent) {
316317
fFilterText = new Text(parent, SWT.NONE);
318+
fFilterText.setFont(JFaceResources.getDialogFont());
317319

318320
GridData data = new GridData();
319321
GC gc = new GC(parent);
320-
gc.setFont(parent.getFont());
322+
gc.setFont(fFilterText.getFont());
321323
FontMetrics fontMetrics = gc.getFontMetrics();
322324
gc.dispose();
323325

0 commit comments

Comments
 (0)