mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup after review IDEA-CR-48790
GitOrigin-RevId: dfbc35fbd3ae866416fd734a956e9ff2d4f2e83e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0082b48cc2
commit
10efbe4ab6
@@ -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;
|
||||
|
||||
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user