mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 435726 - Dont set SWT colors for foreground on active element.
When dark theme is in use outline and project explorer background expected to be dark, regardless of globally (OS level) selected SWT scheme. So for active elements foreground always return NULL which will result in default colors to be displayed. For inactive element, continue displaying them in grey, as grey is inactive color for both dark and default theme. Change-Id: I91b20b0327e0008a2aa01573981f217a609e3bbc Signed-off-by: Solganik Alexander <solganik@gmail.com>
This commit is contained in:
parent
92cd626895
commit
36be245004
1 changed files with 1 additions and 3 deletions
|
@ -40,7 +40,6 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider, I
|
|||
private int fImageFlags;
|
||||
private long fTextFlags;
|
||||
private Color fInactiveColor;
|
||||
private Color fDefaultColor;
|
||||
|
||||
/**
|
||||
* Creates a new label provider with default flags.
|
||||
|
@ -238,12 +237,11 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider, I
|
|||
if (!sref.isActive()) {
|
||||
if (fInactiveColor == null && Display.getCurrent() != null) {
|
||||
fInactiveColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_DARK_GRAY);
|
||||
fDefaultColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND);
|
||||
}
|
||||
return fInactiveColor;
|
||||
}
|
||||
}
|
||||
return fDefaultColor;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue