Skip to content

Commit

Permalink
styling the help and the source html view
Browse files Browse the repository at this point in the history
  • Loading branch information
Dierk Koenig committed Aug 13, 2015
1 parent 4b6c6f8 commit 5b27e7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/main/frege/org/frege/Application.fr
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,15 @@ cmdHelp =
(fold (\str \(k,v) -> str ++ "<tr><td nowrap>"++ k ++"</td><td>"++ v ++ "</td></tr>") "" helpEntries ) ++
"</tbody></table>"

style = "<style>"
++ "body {background-color:#436384; color:white; font-family: Helvetica, Arial, Sans-Serif; font-weight:bold;}"
++ "</style>"

myInfoGUI :: String -> IO ()
myInfoGUI source = monolog "Help Information" ("<html>" ++ source ++ "</html>")
myInfoGUI source = monolog "Help Information" ("<html>" ++ style ++ source ++ "</html>")

myJavaSourceGUI :: String -> IO ()
myJavaSourceGUI javaSource = monolog "Java Source" ("<html><pre>" ++ javaSource)
myJavaSourceGUI javaSource = monolog "Java Source" ("<html>"++ style ++"<code><pre>" ++ javaSource)

myHelpGUI :: String -> String -> IO ()
myHelpGUI title content = monolog title rel2absolute where
Expand Down

0 comments on commit 5b27e7d

Please sign in to comment.