Don't set the native Look and Feel on Linux
This commit is contained in:
parent
f01258fff1
commit
164ccd8a9d
@ -248,6 +248,11 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initLookAndFeel() {
|
private void initLookAndFeel() {
|
||||||
|
// The native L&F on Linux looks horrible - don't set it.
|
||||||
|
if (System.getProperty("os.name").equals("Linux")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Properties for Mac OS X support.
|
// Properties for Mac OS X support.
|
||||||
if ((System.getProperty("mrj.version") != null)
|
if ((System.getProperty("mrj.version") != null)
|
||||||
|| (System.getProperty("os.name").toLowerCase().contains("mac"))) {
|
|| (System.getProperty("os.name").toLowerCase().contains("mac"))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user