equal
deleted
inserted
replaced
23 object GUI { |
23 object GUI { |
24 /* Swing look-and-feel */ |
24 /* Swing look-and-feel */ |
25 |
25 |
26 def init_laf(): Unit = com.formdev.flatlaf.FlatLightLaf.setup() |
26 def init_laf(): Unit = com.formdev.flatlaf.FlatLightLaf.setup() |
27 |
27 |
28 def current_laf: String = UIManager.getLookAndFeel.getClass.getName() |
28 def current_laf(): String = UIManager.getLookAndFeel.getClass.getName() |
29 |
29 |
30 def is_macos_laf: Boolean = |
30 def is_macos_laf: Boolean = |
31 Platform.is_macos && UIManager.getSystemLookAndFeelClassName() == current_laf |
31 Platform.is_macos && UIManager.getSystemLookAndFeelClassName() == current_laf() |
32 |
32 |
33 class Look_And_Feel(laf: LookAndFeel) extends Isabelle_System.Service { |
33 class Look_And_Feel(laf: LookAndFeel) extends Isabelle_System.Service { |
34 def info: UIManager.LookAndFeelInfo = |
34 def info: UIManager.LookAndFeelInfo = |
35 new UIManager.LookAndFeelInfo(laf.getName, laf.getClass.getName) |
35 new UIManager.LookAndFeelInfo(laf.getName, laf.getClass.getName) |
36 } |
36 } |