mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
IDEA-169924 fix typo and care of null color from scheme
This commit is contained in:
@@ -110,16 +110,20 @@ public class BreadcrumbsXmlWrapper extends JComponent implements Disposable {
|
||||
|
||||
@Override
|
||||
public Color getForeground() {
|
||||
return isForegroundSet()
|
||||
? super.getForeground()
|
||||
: EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.LINE_NUMBERS_COLOR);
|
||||
if (!isForegroundSet()) {
|
||||
Color foreground = EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.LINE_NUMBERS_COLOR);
|
||||
if (foreground != null) return foreground;
|
||||
}
|
||||
return super.getForeground();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getBackground() {
|
||||
return isForegroundSet()
|
||||
? super.getForeground()
|
||||
: EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.GUTTER_BACKGROUND);
|
||||
if (!isBackgroundSet()) {
|
||||
Color background = EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.GUTTER_BACKGROUND);
|
||||
if (background != null) return background;
|
||||
}
|
||||
return super.getBackground();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user