# HG changeset patch # User wenzelm # Date 1446298728 -3600 # Node ID 82fc5a6231a2d9defc461976e322f4ae3e32bd70 # Parent 053f7083b3ebdcb58aa17b72ac330f3a0a66bd06 back to traditional Metal as default, and thus evade current problems with Nimbus scrollbar slider; diff -r 053f7083b3eb -r 82fc5a6231a2 NEWS --- a/NEWS Sat Oct 31 14:16:29 2015 +0100 +++ b/NEWS Sat Oct 31 14:38:48 2015 +0100 @@ -66,6 +66,10 @@ uniformly, and allow the dummy file argument ":" to open an empty buffer instead. +* The default look-and-feel for Linux is the traditional "Metal", which +works better with GUI scaling for very high-resolution displays (e.g. +4K). Moreover, it is generally more robust than "Nimbus". + *** Document preparation *** diff -r 053f7083b3eb -r 82fc5a6231a2 src/Doc/JEdit/JEdit.thy --- a/src/Doc/JEdit/JEdit.thy Sat Oct 31 14:16:29 2015 +0100 +++ b/src/Doc/JEdit/JEdit.thy Sat Oct 31 14:38:48 2015 +0100 @@ -283,7 +283,7 @@ Isabelle/jEdit enables platform-specific look-and-feel by default as follows. - \<^descr>[Linux:] The platform-independent \<^emph>\Nimbus\ is used by + \<^descr>[Linux:] The platform-independent \<^emph>\Metal\ is used by default. \<^emph>\GTK+\ also works under the side-condition that the overall GTK theme @@ -310,7 +310,7 @@ Users may experiment with different look-and-feels, but need to keep in mind that this extra variance of GUI functionality is unlikely to work in arbitrary combinations. The platform-independent - \<^emph>\Nimbus\ and \<^emph>\Metal\ should always work. The historic + \<^emph>\Metal\ and \<^emph>\Nimbus\ should always work. The historic \<^emph>\CDE/Motif\ should be ignored. After changing the look-and-feel in \<^emph>\Global Options~/ @@ -353,7 +353,7 @@ \<^item> \<^emph>\Global Options / Appearance / Button, menu and label font\ as well as \<^emph>\List and text field font\: this specifies the primary and - secondary font for the old \<^emph>\Metal\ look-and-feel + secondary font for the traditional \<^emph>\Metal\ look-and-feel (\secref{sec:look-and-feel}), which happens to scale better than newer ones like \<^emph>\Nimbus\. diff -r 053f7083b3eb -r 82fc5a6231a2 src/Pure/GUI/gui.scala --- a/src/Pure/GUI/gui.scala Sat Oct 31 14:16:29 2015 +0100 +++ b/src/Pure/GUI/gui.scala Sat Oct 31 14:38:48 2015 +0100 @@ -34,8 +34,7 @@ if (Platform.is_windows || Platform.is_macos) UIManager.getSystemLookAndFeelClassName() else - find_laf("Nimbus") getOrElse - UIManager.getCrossPlatformLookAndFeelClassName() + UIManager.getCrossPlatformLookAndFeelClassName() } def init_laf(): Unit = UIManager.setLookAndFeel(get_laf()) diff -r 053f7083b3eb -r 82fc5a6231a2 src/Tools/jEdit/src/jEdit.props --- a/src/Tools/jEdit/src/jEdit.props Sat Oct 31 14:16:29 2015 +0100 +++ b/src/Tools/jEdit/src/jEdit.props Sat Oct 31 14:38:48 2015 +0100 @@ -240,7 +240,7 @@ line-end.shortcut=END line-home.shortcut=HOME logo.icon.medium=32x32/apps/isabelle.gif -lookAndFeel=javax.swing.plaf.nimbus.NimbusLookAndFeel +lookAndFeel=javax.swing.plaf.metal.MetalLookAndFeel match-bracket.shortcut2=C+9 navigator.showOnToolbar=true next-bracket.shortcut2=C+e C+9