Commit f1605e4c authored by iSergio's avatar iSergio
Browse files

Change showcase to dark theme. New code highlight.

parent f27b1185
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,3 +9,4 @@
.classpath
.project
.settings
*.versionsBackup
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
    <inherits name='com.google.gwt.user.User'/>
    <inherits name="com.google.gwt.xml.XML"/>
    <inherits name="com.google.gwt.logging.Logging"/>
    <inherits name='com.google.gwt.user.theme.clean.Clean'/>
    <inherits name='com.google.gwt.user.theme.dark.Dark'/>

    <!-- Other module inherits -->
    <inherits name="org.cesiumjs.Cesium"/>
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public abstract class AbstractSourceButton extends Composite implements ClickHan
    }

    protected native void doFormat() /*-{
        $wnd.SyntaxHighlighter.highlight();
        $wnd.hljs.highlightAll();
    }-*/;

    protected abstract void showSourceCode(String sourceCode);
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public class ShowSourceButton extends AbstractSourceButton {
    protected void showSourceCode(String sourceCode) {
        sourceCode = sourceCode.replaceAll("<", "&lt,").replace(">", "&gt;");

        final String html = "<pre class=\"brush: java; toolbar: false;\">" + sourceCode + "</pre>";
        final String html = "<pre><code class=\"java\">" + sourceCode + "</code></pre>";
        ScrollPanel sp = new ScrollPanel();
        sp.setSize((Window.getClientWidth() * 0.6) + "px", (Window.getClientHeight() * 0.7) + "px");
        sp.add(new HTML(html));
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>GWT Cesium showcase</title>

    <link rel="stylesheet" href="Showcase/js/highlight/styles/androidstudio.css">
    <script src="Showcase/js/highlight/highlight.pack.js" language="JavaScript" type="text/javascript"></script>

    <link media="all" type="text/css" href="Showcase/js/jquery-ui-1.12.1/jquery-ui.css" rel="stylesheet">
    <script src="Showcase/js/jquery-3.1.1.min.js" language="JavaScript" type="text/javascript"></script>
    <script src="Showcase/js/jquery-ui-1.12.1/jquery-ui.min.js" language="JavaScript" type="text/javascript"></script>