From 0aaacc86e2823f7eb8cfddb79c3a72c02a17aa1f Mon Sep 17 00:00:00 2001
From: z3d <z3d@mail.i2p>
Date: Sun, 16 Aug 2009 15:45:07 +0000
Subject: [PATCH] Dark theme and ieshim.css tweaks; minor sidepanel mods.

---
 apps/routerconsole/jsp/summary.jsp                    |  4 ++--
 apps/routerconsole/jsp/summarynoframe.jsp             |  2 +-
 installer/resources/themes/console/classic/ieshim.css |  7 +++++--
 installer/resources/themes/console/dark/console.css   | 11 +++++++++--
 4 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/apps/routerconsole/jsp/summary.jsp b/apps/routerconsole/jsp/summary.jsp
index dd66f652b0..c101156b21 100644
--- a/apps/routerconsole/jsp/summary.jsp
+++ b/apps/routerconsole/jsp/summary.jsp
@@ -11,7 +11,7 @@
         // pass the new delay parameter to the iframe
         newDelay = "?refresh=" + d;
     if (!"0".equals(d))
-        out.print("<iframe src=\"summaryframe.jsp" + newDelay + "\" height=\"1500\" width=\"100%\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">\n");
+        out.print("<iframe src=\"summaryframe.jsp" + newDelay + "\" height=\"1500\" width=\"200\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">\n");
 %>
 <div class="routersummary">
 <%@include file="summarynoframe.jsp" %>
@@ -22,7 +22,7 @@
     } else {
         // since we don't have an iframe this will reload the base page, and
         // the new delay will be passed to the iframe above
-        out.print("<br><p><center><form action=\"" + request.getRequestURI() + "\" method=\"GET\">\n");
+        out.print("<p><center><form action=\"" + request.getRequestURI() + "\" method=\"GET\">\n");
         out.print("<b>Refresh (s):</b> <input size=\"3\" type=\"text\" name=\"refresh\" value=\"60\" />\n");
         out.print("<button type=\"submit\">Enable</button>\n");
         out.print("</form></center></p></div>\n");
diff --git a/apps/routerconsole/jsp/summarynoframe.jsp b/apps/routerconsole/jsp/summarynoframe.jsp
index 40b5ec7126..6ac83d4bb8 100644
--- a/apps/routerconsole/jsp/summarynoframe.jsp
+++ b/apps/routerconsole/jsp/summarynoframe.jsp
@@ -122,7 +122,7 @@
 <tr><td align="left"><b>Exploratory:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundTunnels" />/<jsp:getProperty name="helper" property="outboundTunnels" /></td></tr>
 <tr><td align="left"><b>Client:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundClientTunnels" />/<jsp:getProperty name="helper" property="outboundClientTunnels" /></td></tr>
 <tr><td align="left"><b>Participating:</b></td><td align="right"><jsp:getProperty name="helper" property="participatingTunnels" /></td></tr>
-</table><hr><h3><a href="/oldstats.jsp#JobQueue" target="_top" title="What's in the router's job queue?">Congestion</a></h3><hr>
+</table><hr><h3><a href="/jobs.jsp" target="_top" title="What's in the router's job queue?">Congestion</a></h3><hr>
 <table>
 <tr><td align="left"><b>Job lag:</b></td><td align="right"><jsp:getProperty name="helper" property="jobLag" /></td></tr>
 <tr><td align="left"><b>Message delay:</b></td><td align="right"><jsp:getProperty name="helper" property="messageDelay" /></td></tr>
diff --git a/installer/resources/themes/console/classic/ieshim.css b/installer/resources/themes/console/classic/ieshim.css
index 0651274293..2963dcf8a2 100644
--- a/installer/resources/themes/console/classic/ieshim.css
+++ b/installer/resources/themes/console/classic/ieshim.css
@@ -122,7 +122,7 @@ div.routersummary hr {
 div.routersummary h3 {
      border: 0px solid #f00;
      text-align: center !important;
-     font-size: 10pt;
+     font-size: 9pt;
      letter-spacing: 0.05em;
      margin: -14px 0px -15px 1px;
      padding: 5px 0px 5px 0px;
@@ -133,7 +133,7 @@ div.routersummary h3 {
 div.routersummary h4 {
      border: 0px solid #f00;
      border-bottom: 0 !important;
-     font-size: 9pt;
+     font-size: 8.5pt;
      letter-spacing: 0.05em;
      margin: -14px 0px -15px 1px !important;
      padding: 2px 3px 3px 3px;
@@ -154,6 +154,7 @@ div.routersummary table {
      padding: 0px -10px;
      background-image: none !important;
      background-color: transparent !important;
+     text-align: center !important;
 }
 
 div.routersummary tr {
@@ -172,10 +173,12 @@ div.routersummary p {
      padding: 0;
 }     
 
+/*
 div.routersummary img {
      margin: 5px -10px -5px -10px;
      overflow: hidden;
 }     
+*/
 
 div.routersummary a:link, div.routersummary a:visited {
      text-shadow: 0px 0px 1px rgba(0, 0, 32, 0.3);
diff --git a/installer/resources/themes/console/dark/console.css b/installer/resources/themes/console/dark/console.css
index 6986ce9b79..d36db5c62b 100644
--- a/installer/resources/themes/console/dark/console.css
+++ b/installer/resources/themes/console/dark/console.css
@@ -325,7 +325,7 @@ div.messages li {
 }
 
 div.graphspanel {
-     padding: 0px 5px 10px 5px;
+     padding: 15px;
      margin: 10px 0px;
      background: #005;
      -moz-border-radius: 4px;
@@ -336,6 +336,12 @@ div.graphspanel {
      -moz-box-shadow: inset 0px 0px 1px 0px #eef;
      -khtml-box-shadow: inset 0px 0px 1px 0px #eef;
      box-shadow: inset 0px 0px 1px 0px #eef;
+     text-align: center;
+}
+
+div.graphspanel form {
+     text-align: left;
+     padding: 15px;
 }
 
 div.graphspanel img {
@@ -347,7 +353,7 @@ div.graphspanel img {
      -moz-box-shadow: inset 0px 0px 1px 0px #eef;
      -khtml-box-shadow: inset 0px 0px 1px 0px #eef;
      box-shadow: inset 0px 0px 1px 0px #eef;
-     opacity: 0.9;
+     opacity: 0.8;
 }
 
 div.graphspanel img:hover {
@@ -361,6 +367,7 @@ div.graphspanel img:hover {
      box-shadow: inset 0px 0px 1px 1px #f60;
      opacity: 1;
 }
+
 table {
      border-collapse: collapse;
      width: 100%;
-- 
GitLab