1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

Bug 567822 - [Dark Theme] Several controls using ControlFactory have wrong background (preferences, dialogs)

I don't think "inheriting" by hand the background colors is supposed to
be done like this. Removing the lines setting the background to be the
same as the parent fixes the issue. I also verified all places in the UI
before/after the change.

Change-Id: I2eb4cc5afdd303d5d5613fc3d50d67d0c18c7028
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
This commit is contained in:
Marc-Andre Laperle 2020-10-13 01:13:06 -04:00 committed by Marc-André Laperle
parent 219526880f
commit cebba80b36

View file

@ -277,7 +277,6 @@ public class ControlFactory {
button.setText(label);
GridData data = new GridData();
button.setLayoutData(data);
button.setBackground(group.getBackground());
button.setForeground(group.getForeground());
return button;
}
@ -296,7 +295,6 @@ public class ControlFactory {
button.setText(label);
GridData data = new GridData();
button.setLayoutData(data);
button.setBackground(group.getBackground());
button.setForeground(group.getForeground());
return button;
}