Commit ee00c7ca authored by Konstantin Bulenkov's avatar Konstantin Bulenkov
Browse files

update javadoc and deprecate isAlloy

parent 90e12b5c
Showing with 16 additions and 5 deletions
+16 -5
...@@ -1315,7 +1315,7 @@ public class UIUtil { ...@@ -1315,7 +1315,7 @@ public class UIUtil {
public static Color getSeparatorColor() { public static Color getSeparatorColor() {
Color separatorColor = getSeparatorForeground(); Color separatorColor = getSeparatorForeground();
if (isUnderAlloyLookAndFeel()) { if (false) {
separatorColor = getSeparatorShadow(); separatorColor = getSeparatorShadow();
} }
//under GTK+ L&F colors set hard //under GTK+ L&F colors set hard
...@@ -1456,14 +1456,24 @@ public class UIUtil { ...@@ -1456,14 +1456,24 @@ public class UIUtil {
return UIManager.getColor("OptionPane.background"); return UIManager.getColor("OptionPane.background");
} }
/**
* Alloy Look-n-Feel is deprecated and does not supported by IntelliJ Platform
* @return false
* @deprecated
*/
@SuppressWarnings("HardCodedStringLiteral") @SuppressWarnings("HardCodedStringLiteral")
public static boolean isUnderAlloyLookAndFeel() { public static boolean isUnderAlloyLookAndFeel() {
return UIManager.getLookAndFeel().getName().contains("Alloy"); return false;
} }
/**
* Alloy Look-n-Feel is deprecated and does not supported by IntelliJ Platform
* @return false
* @deprecated
*/
@SuppressWarnings("HardCodedStringLiteral") @SuppressWarnings("HardCodedStringLiteral")
public static boolean isUnderAlloyIDEALookAndFeel() { public static boolean isUnderAlloyIDEALookAndFeel() {
return isUnderAlloyLookAndFeel() && UIManager.getLookAndFeel().getName().contains("IDEA"); return false;
} }
@SuppressWarnings("HardCodedStringLiteral") @SuppressWarnings("HardCodedStringLiteral")
...@@ -1483,12 +1493,13 @@ public class UIUtil { ...@@ -1483,12 +1493,13 @@ public class UIUtil {
/** /**
* IntelliJ Platform does not support Nimbus look-n-feel * Nimbus Look-n-Feel is deprecated and does not supported by IntelliJ Platform
* @return false
* @deprecated * @deprecated
*/ */
@SuppressWarnings("HardCodedStringLiteral") @SuppressWarnings("HardCodedStringLiteral")
public static boolean isUnderNimbusLookAndFeel() { public static boolean isUnderNimbusLookAndFeel() {
return UIManager.getLookAndFeel().getName().contains("Nimbus"); return false;
} }
@SuppressWarnings("HardCodedStringLiteral") @SuppressWarnings("HardCodedStringLiteral")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment