cleanup after review IDEA-CR-48790

GitOrigin-RevId: dfbc35fbd3ae866416fd734a956e9ff2d4f2e83e
This commit is contained in:
Konstantin Bulenkov
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 0082b48cc2
commit 10efbe4ab6
2 changed files with 7 additions and 4 deletions
@@ -39,6 +39,10 @@ public final class ColorDescriptor extends AbstractKeyDescriptor<ColorKey> {
public boolean isForeground() {
return this == FOREGROUND || this == FOREGROUND_WITH_TRANSPARENCY;
}
public boolean isWithTransparency() {
return this == FOREGROUND_WITH_TRANSPARENCY || this == BACKGROUND_WITH_TRANSPARENCY;
}
}
private final Kind myKind;
@@ -855,7 +855,7 @@ public class ColorAndFontOptions extends SearchableConfigurable.Parent.Abstract
@Override
public Color getExternalForeground() {
return myKind.isForeground() ? myColor : null;
return isForegroundEnabled() ? myColor : null;
}
@Override
@@ -867,7 +867,7 @@ public class ColorAndFontOptions extends SearchableConfigurable.Parent.Abstract
@Override
public Color getExternalBackground() {
return myKind.isBackground() ? myColor : null;
return isBackgroundEnabled() ? myColor : null;
}
@Override
@@ -903,8 +903,7 @@ public class ColorAndFontOptions extends SearchableConfigurable.Parent.Abstract
@Override
public boolean isTransparencyEnabled() {
return myKind == ColorDescriptor.Kind.BACKGROUND_WITH_TRANSPARENCY ||
myKind == ColorDescriptor.Kind.FOREGROUND_WITH_TRANSPARENCY;
return myKind.isWithTransparency();
}
@Override