mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -51,7 +51,7 @@ public class FileColorsModel implements Cloneable {
|
||||
static {
|
||||
globalScopes = new HashMap<String, String>();
|
||||
globalScopes.put(NonProjectFilesScope.NAME, "file.colors.enable.non.project");
|
||||
if (PlatformUtils.isJavaIDE()) {
|
||||
if (PlatformUtils.isIntelliJ()) {
|
||||
globalScopes.put(TestsScope.NAME, "file.colors.enable.tests");
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class PlatformUtils {
|
||||
return FLEX_PREFIX.equals(getPlatformPrefix());
|
||||
}
|
||||
|
||||
public static boolean isJavaIDE() {
|
||||
public static boolean isIntelliJ() {
|
||||
return isIdea() || isCommunity();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ public class EditorsSplitters extends JBPanel {
|
||||
super(new BorderLayout());
|
||||
if (UIUtil.isUnderDarcula()) {
|
||||
setBackgroundImage(IconLoader.getIcon("/frame_background.jpg"));
|
||||
if (PlatformUtils.isJavaIDE()) {
|
||||
if (PlatformUtils.isIntelliJ()) {
|
||||
setCenterImage(IconLoader.getIcon("/idea_logo_background.png"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public class IdeRootPane extends JRootPane implements UISettingsListener {
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
if (UIUtil.isUnderDarcula() && PlatformUtils.isJavaIDE()) {
|
||||
if (UIUtil.isUnderDarcula() && PlatformUtils.isIntelliJ()) {
|
||||
IconUtil.paintInCenterOf(this, g, IconLoader.getIcon("/idea_logo_background.png"));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ public class DefaultWelcomeScreen implements WelcomeScreen {
|
||||
};
|
||||
|
||||
myWelcomePanel.setBackgroundImage(IconLoader.getIcon("/frame_background.jpg"));
|
||||
if (PlatformUtils.isJavaIDE()) {
|
||||
if (PlatformUtils.isIntelliJ()) {
|
||||
myWelcomePanel.setCenterImage(IconLoader.getIcon("idea_logo_background.png"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user