use css from Isabelle distribution;
authorwenzelm
Thu, 01 Jun 2017 21:14:38 +0200
changeset 65996 e72f7291ad6c
parent 65995 145283346958
child 65997 e3dc9ea67a62
use css from Isabelle distribution;
src/Tools/VSCode/src/preview.scala
--- a/src/Tools/VSCode/src/preview.scala	Thu Jun 01 20:52:31 2017 +0200
+++ b/src/Tools/VSCode/src/preview.scala	Thu Jun 01 21:14:38 2017 +0200
@@ -45,10 +45,11 @@
   {
     val label = "Preview " + quote(model.node_name.toString)
     val content =
-      HTML.output_document(head = Nil, css = "", body =
+      HTML.output_document(Nil,
         List(
           HTML.chapter("Theory " + quote(model.node_name.theory_base_name)),
-          HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))))
+          HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))),
+        css = Url.print_file(Path.explode("~~/etc/isabelle.css").file))
     (label, content)
   }
 }