merged
authordesharna
Mon, 10 Jun 2024 13:39:09 +0200
changeset 80318 cdf26ac90f87
parent 80317 be2e772e0adf (current diff)
parent 80315 a82db14570cd (diff)
child 80319 f83f402bc9a4
child 80321 31b9dfbe534c
merged
--- a/src/Pure/Build/build_manager.scala	Mon Jun 10 08:34:09 2024 +0200
+++ b/src/Pure/Build/build_manager.scala	Mon Jun 10 13:39:09 2024 +0200
@@ -1095,8 +1095,10 @@
         Get(Page.OVERVIEW, "overview", get_overview),
         Get(Page.BUILD, "build", get_build),
         Post(API.BUILD_CANCEL, "cancel build", cancel_build))
+      val logo = Bytes.read(Path.explode("$ISABELLE_HOME/lib/logo/isabelle_transparent-48.gif"))
       val head =
         List(
+          Web_App.More_HTML.icon("data:image/x-icon;base64," + logo.encode_base64),
           HTML.style_file("https://hawkz.github.io/gdcss/gd.css"),
           HTML.style("html { background-color: white; }"))
     }
--- a/src/Pure/System/web_app.scala	Mon Jun 10 08:34:09 2024 +0200
+++ b/src/Pure/System/web_app.scala	Mon Jun 10 13:39:09 2024 +0200
@@ -28,6 +28,9 @@
     val fieldset = new Operator("fieldset")
     val button = new Operator("button")
 
+    def icon(href: String): XML.Elem =
+      XML.Elem(Markup("link", List("rel" -> "icon", "type" -> "image/x-icon", "href" -> href)), Nil)
+
     def legend(txt: String): XML.Elem = XML.Elem(Markup("legend", Nil), text(txt))
     def input(typ: String): XML.Elem = XML.Elem(Markup("input", List("type" -> typ)), Nil)
     def hidden(k: Params.Key, v: String): XML.Elem =