tuned GUI;
authorwenzelm
Sun, 03 Nov 2024 14:11:01 +0100
changeset 81322 0521e65af41e
parent 81321 301feaa85406
child 81323 33fbf90fbc1d
tuned GUI;
src/Pure/GUI/gui.scala
--- a/src/Pure/GUI/gui.scala	Sat Nov 02 20:27:41 2024 +0100
+++ b/src/Pure/GUI/gui.scala	Sun Nov 03 14:11:01 2024 +0100
@@ -49,6 +49,10 @@
         .filterNot(info => old_lafs(info.getClassName))
     val more_lafs = look_and_feels.map(_.info)
     UIManager.setInstalledLookAndFeels((more_lafs ::: lafs).toArray)
+
+    // see https://www.formdev.com/flatlaf/customizing
+    UIManager.put("Component.arrowType", "triangle")
+    UIManager.put("ScrollBar.showButtons", true)
   }
 
 
@@ -266,6 +270,11 @@
       tree.getSelectionModel.setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION)
     }
 
+    // follow jEdit
+    if (!GUI.is_macos_laf) {
+      tree.putClientProperty("JTree.lineStyle", "Angled")
+    }
+
     tree
   }