GT-3103 - Look and Feel - fixed Linux Nimbus LaF issues with painting in

some support tools
This commit is contained in:
dragonmacher 2019-08-26 13:24:18 -04:00
parent 667c17499f
commit b6765e539d

View file

@ -338,6 +338,7 @@ public class DockingWindowsLookAndFeelUtils {
/**
* Returns true if the given UI object is using the Aqua Look and Feel.
* @param UI the UI to examine.
* @return true if the UI is using Aqua
*/
public static boolean isUsingAquaUI(ComponentUI UI) {
Class<? extends ComponentUI> clazz = UI.getClass();
@ -345,4 +346,12 @@ public class DockingWindowsLookAndFeelUtils {
return name.startsWith("Aqua");
}
/**
* Returns true if 'Nimbus' is the current Look and Feel
* @return true if 'Nimbus' is the current Look and Feel
*/
public static boolean isUsingNimbusUI() {
LookAndFeel lookAndFeel = UIManager.getLookAndFeel();
return NIMBUS_LOOK_AND_FEEL.equals(lookAndFeel.getName());
}
}