clarified signature: prefer enum types;
authorwenzelm
Tue, 29 Aug 2023 16:55:49 +0200
changeset 78603 2401b5d9cee9
parent 78602 92b6958e8787
child 78604 9ccd5e8737cb
clarified signature: prefer enum types;
src/Pure/Thy/html.scala
--- a/src/Pure/Thy/html.scala	Tue Aug 29 16:52:59 2023 +0200
+++ b/src/Pure/Thy/html.scala	Tue Aug 29 16:55:49 2023 +0200
@@ -355,15 +355,13 @@
   /* GUI layout */
 
   object Wrap_Panel {
-    object Alignment extends Enumeration {
-      val left, right, center = Value
-    }
+    enum Alignment { case left, right, center }
 
     def apply(
       contents: List[XML.Elem],
       name: String = "",
       action: String = "",
-      alignment: Alignment.Value = Alignment.right
+      alignment: Alignment = Alignment.right
     ): XML.Elem = {
       val body = Library.separate(XML.Text(" "), contents)
       GUI.form(List(div(body) + ("style" -> ("text-align: " + alignment))),