Skip to content

Commit 756a862

Browse files
committed
Remove redundant color dispose calls and duplicate dark styling
1 parent 49199aa commit 756a862

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application

bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,7 @@ protected Shell getParentShell() {
606606

607607
@Override
608608
protected Control createContents(Composite parent) {
609-
Control contents = super.createContents(parent);
610-
if (isDark) {
611-
applyDarkStyles(getShell());
612-
}
613-
return contents;
609+
return super.createContents(parent);
614610
}
615611
}.prompt(force);
616612
}
@@ -934,10 +930,6 @@ private void applyDarkStyles(Shell shell) {
934930
shell.setBackground(bg);
935931
shell.setForeground(fg);
936932
applyStylesRecursive(shell, bg, fg, linkColor);
937-
shell.addDisposeListener(e -> {
938-
bg.dispose();
939-
fg.dispose();
940-
});
941933
}
942934

943935
private void applyStylesRecursive(Control control, Color bg, Color fg, Color linkColor) {

0 commit comments

Comments
 (0)