tuned GUI output;
authorwenzelm
Thu, 26 Dec 2024 16:33:46 +0100
changeset 81662 e711873dcb53
parent 81661 98ecc0ed6af1
child 81663 09c535d9ff0c
tuned GUI output;
src/Pure/GUI/gui.scala
src/Tools/jEdit/src/timing_dockable.scala
--- a/src/Pure/GUI/gui.scala	Thu Dec 26 16:16:28 2024 +0100
+++ b/src/Pure/GUI/gui.scala	Thu Dec 26 16:33:46 2024 +0100
@@ -95,7 +95,11 @@
 
   object Style_Plain extends Style { override def toString: String = "plain" }
 
-  object Style_HTML extends Style_HTML { override def toString: String = "html" }
+  object Style_HTML extends Style_HTML {
+    override def toString: String = "html"
+    def bullet: String = "\u2218"
+    def bullet_triangle: String = "\u25b9"
+  }
 
   object Style_Symbol_Encoded extends Style_Symbol {
     override def toString: String = "symbol_encoded"
--- a/src/Tools/jEdit/src/timing_dockable.scala	Thu Dec 26 16:16:28 2024 +0100
+++ b/src/Tools/jEdit/src/timing_dockable.scala	Thu Dec 26 16:33:46 2024 +0100
@@ -78,8 +78,10 @@
     def gui_name: GUI.Name
     def gui_text: String = {
       val style = GUI.Style_HTML
+      val bullet = if (depth == 0) style.bullet_triangle else style.bullet
       style.enclose(
-        style.spaces(2 * depth) + style.make_text(Time.print_seconds(timing) + "s ") +
+        style.spaces(4 * depth) + bullet + " " +
+        style.make_text(Time.print_seconds(timing) + "s ") +
         gui_name.set_style(style).toString)
     }
     def follow(snapshot: Document.Snapshot): Unit