mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GT-3103 - Look and Feel - fixed Linux Nimbus LaF issues with painting in
some support tools
This commit is contained in:
parent
667c17499f
commit
b6765e539d
1 changed files with 9 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue