Bug 536703 - Fix colours for AbstractInPlaceDialog children on dark theme.
Change-Id: Ie385ee2c9a200bacda8bbd88e703f530e7031fc7
Depends-On: Iba78c5902c5fabc38a37497b0955e6320387fe78
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/AbstractInPlaceDialog.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/AbstractInPlaceDialog.java
index fe3f3a8..d38efe1 100644
--- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/AbstractInPlaceDialog.java
+++ b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/AbstractInPlaceDialog.java
@@ -122,22 +122,9 @@
parent.pack();
- setBackgroundColor(parent);
-
return parent;
}
- private void setBackgroundColor(Composite parent) {
- parent.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
- for (Control control : parent.getChildren()) {
- if (control instanceof Composite) {
- setBackgroundColor((Composite) control);
- } else {
- control.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
- }
- }
- }
-
protected abstract Control createControl(Composite composite);
protected void createButtons(Composite composite) {