/*
 * Writesetter is a program for creating PDF documents from text files with markup.
 * Copyright (c) 2013 Jesper S Villadsen <jeschvi@gmail.com>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package writesetter.startup

import javax.swing.UIManager

object Launch {

  val p = getClass.getPackage
  val appTitle = p.getImplementationTitle
  val appVersion = p.getImplementationVersion

  def main(args: Array[String]): Unit = {

    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())

    if (writesetter.core.Environment.isMacOSX) {
      SpecialitiesMacOSX.prepare()
    }

    writesetter.editor.CompileOrGUI.switcher(args)
  }
}
/*
 * Writesetter is a program for creating PDF documents from text files with markup.
 * Copyright (c) 2013 Jesper S Villadsen <jeschvi@gmail.com>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package writesetter.startup

object Launch {

  val p = getClass.getPackage
  val appTitle = p.getImplementationTitle
  val appVersion = p.getImplementationVersion

  def main(args: Array[String]): Unit = {

    if (writesetter.core.Environment.isMacOSX) SpecialitiesMacOSX.prepare()

    writesetter.editor.CompileOrGUI.switcher(args)
  }
}
--- 
+++ 
@@ -18,6 +18,8 @@
 
 package writesetter.startup
 
+import javax.swing.UIManager
+
 object Launch {
 
   val p = getClass.getPackage
@@ -26,7 +28,11 @@
 
   def main(args: Array[String]): Unit = {
 
-    if (writesetter.core.Environment.isMacOSX) SpecialitiesMacOSX.prepare()
+    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())
+
+    if (writesetter.core.Environment.isMacOSX) {
+      SpecialitiesMacOSX.prepare()
+    }
 
     writesetter.editor.CompileOrGUI.switcher(args)
   }
Set native look and feel. Makes a big difference on Gnome.
