mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support Darcula on Solaris and other exotic OSes
This commit is contained in:
@@ -69,11 +69,11 @@ public class DarculaLaf extends BasicLookAndFeel {
|
||||
|
||||
protected BasicLookAndFeel createBaseLookAndFeel() {
|
||||
try {
|
||||
if (SystemInfo.isWindows || SystemInfo.isLinux) {
|
||||
return new IdeaLaf();
|
||||
} else {
|
||||
if (SystemInfo.isMac) {
|
||||
final String name = UIManager.getSystemLookAndFeelClassName();
|
||||
return (BasicLookAndFeel)Class.forName(name).newInstance();
|
||||
} else {
|
||||
return new IdeaLaf();
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user