* Console:

- Less magic and fix img sizes, for speed and less artifacts while rendering
    - CSS tweaks
This commit is contained in:
zzz
2011-11-11 02:50:55 +00:00
parent 4677b27e49
commit 624badfb5f
4 changed files with 35 additions and 32 deletions

View File

@ -28,14 +28,18 @@ public class SummaryBarRenderer {
StringBuilder buf = new StringBuilder(8*1024); StringBuilder buf = new StringBuilder(8*1024);
String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME, CSSHelper.DEFAULT_THEME); String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME, CSSHelper.DEFAULT_THEME);
buf.append("<a href=\"/\" target=\"_top\"><img src=\"") // TODO - the bar would render more cleanly if we specified the img height and width here,
// but unfortunately the images in the different themes are different sizes.
// They range in height from 37 to 43 px. But there's a -2 bottom margin...
// So put it in a div.
buf.append("<div style=\"height: 36px;\"><a href=\"/\" target=\"_top\"><img src=\"")
.append(CSSHelper.BASE_THEME_PATH) .append(CSSHelper.BASE_THEME_PATH)
.append(theme) .append(theme)
.append("/images/i2plogo.png\" alt=\"") .append("/images/i2plogo.png\" alt=\"")
.append(_("I2P Router Console")) .append(_("I2P Router Console"))
.append("\" title=\"") .append("\" title=\"")
.append(_("I2P Router Console")) .append(_("I2P Router Console"))
.append("\"></a><hr>") .append("\"></a></div><hr>")
.append("<h3><a href=\"/help\" target=\"_top\" title=\"") .append("<h3><a href=\"/help\" target=\"_top\" title=\"")
.append(_("I2P Router Help &amp; FAQ")) .append(_("I2P Router Help &amp; FAQ"))

View File

@ -36,22 +36,22 @@
<jsp:useBean class="net.i2p.router.web.ContentHelper" id="contenthelper" scope="request" /> <jsp:useBean class="net.i2p.router.web.ContentHelper" id="contenthelper" scope="request" />
<div class="welcome"> <div class="welcome">
<div class="langbox"> <div class="langbox">
<a href="/?lang=en&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a> <a href="/?lang=en&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a>
<a href="/?lang=ar&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a> <a href="/?lang=ar&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a>
<a href="/?lang=zh&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=cn" title="中文" alt="中文"></a> <a href="/?lang=zh&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="中文" alt="中文"></a>
<a href="/?lang=da&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=dk" title="Danish" alt="Danish"></a> <a href="/?lang=da&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=dk" title="Danish" alt="Danish"></a>
<a href="/?lang=de&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=de" title="Deutsch" alt="Deutsch"></a> <a href="/?lang=de&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=de" title="Deutsch" alt="Deutsch"></a>
<a href="/?lang=es&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=es" title="Español" alt="Español"></a> <a href="/?lang=es&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=es" title="Español" alt="Español"></a>
<a href="/?lang=fi&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=fi" title="Suomi" alt="Suomi"></a> <a href="/?lang=fi&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fi" title="Suomi" alt="Suomi"></a>
<a href="/?lang=fr&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=fr" title="Français" alt="Français"></a><br> <a href="/?lang=fr&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fr" title="Français" alt="Français"></a><br>
<a href="/?lang=it&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a> <a href="/?lang=it&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a>
<a href="/?lang=nl&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=nl" title="Nederlands" alt="Nederlands"></a> <a href="/?lang=nl&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=nl" title="Nederlands" alt="Nederlands"></a>
<a href="/?lang=pl&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=pl" title="Polski" alt="Polski"></a> <a href="/?lang=pl&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pl" title="Polski" alt="Polski"></a>
<a href="/?lang=pt&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=pt" title="Português" alt="Português"></a> <a href="/?lang=pt&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pt" title="Português" alt="Português"></a>
<a href="/?lang=ru&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Русский" alt="Русский"></a> <a href="/?lang=ru&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Русский" alt="Русский"></a>
<a href="/?lang=sv&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=se" title="Svenska" alt="Svenska"></a> <a href="/?lang=sv&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=se" title="Svenska" alt="Svenska"></a>
<a href="/?lang=uk&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=ua" title="Ukrainian" alt="Ukrainian"></a> <a href="/?lang=uk&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ua" title="Ukrainian" alt="Ukrainian"></a>
<a href="/?lang=vi&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=vn" title="Tiếng Việt" alt="Tiếng Việt"></a> <a href="/?lang=vi&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=vn" title="Tiếng Việt" alt="Tiếng Việt"></a>
</div> </div>
<a name="top"></a> <a name="top"></a>
<h2><%=intl._("Welcome to I2P")%></h2> <h2><%=intl._("Welcome to I2P")%></h2>

View File

@ -5,10 +5,9 @@
body { body {
margin: 10px 0px -10px 10px; margin: 10px 0px -10px 10px;
text-align: center; text-align: center;
background: #ffe url('images/snowcamo.png');
color: #000; color: #000;
font: 10pt/130% "Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif; font: 10pt/130% "Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
background: #99f url('images/magic.png') center bottom; background: #9696ff url('images/snowcamo.png');
} }
.hide { .hide {
@ -97,10 +96,10 @@ div.routersummary {
color: #000; color: #000;
font-size: 8pt; font-size: 8pt;
clear: left;/* fixes a bug in Opera */ clear: left;/* fixes a bug in Opera */
-moz-border-radius: 4px; -moz-border-radius: 8px;
-khtml-border-radius: 4px; -khtml-border-radius: 8px;
border-radius: 4px; border-radius: 8px;
background: #ffe url('images/magic.png') center bottom; background: #f0f0f0;
-moz-box-shadow: inset 0px 0px 1px 1px #bbf; -moz-box-shadow: inset 0px 0px 1px 1px #bbf;
-khtml-box-shadow: inset 0px 0px 1px 1px #bbf; -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
box-shadow: inset 0px 0px 1px 1px #bbf; box-shadow: inset 0px 0px 1px 1px #bbf;
@ -162,7 +161,7 @@ div.routersummary h4 {
letter-spacing: 0.02em; letter-spacing: 0.02em;
margin: -6px -6px -7px !important; margin: -6px -6px -7px !important;
padding: 3px 3px 5px 3px; padding: 3px 3px 5px 3px;
background: #ddf url(images/magic.png); background: #dbdbf5;
text-transform: capitalize; text-transform: capitalize;
text-decoration: none !important; text-decoration: none !important;
color: #2b2; color: #2b2;
@ -312,7 +311,6 @@ div.sorry hr {
div.main { div.main {
margin: 10px 10px 20px 207px; margin: 10px 10px 20px 207px;
padding: 0 15px 15px 15px; padding: 0 15px 15px 15px;
background: #ffe;
text-align: left; text-align: left;
color: #001; color: #001;
width: auto; width: auto;
@ -324,7 +322,8 @@ div.main {
-moz-box-shadow: inset 0px 0px 1px 1px #bbf; -moz-box-shadow: inset 0px 0px 1px 1px #bbf;
-khtml-box-shadow: inset 0px 0px 1px 1px #bbf; -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
box-shadow: inset 0px 0px 1px 1px #bbf; box-shadow: inset 0px 0px 1px 1px #bbf;
background: #ffe url('images/magic.png') center bottom;} background: #f0f0f0;
}
div.main hr, hr { div.main hr, hr {
color: #113; color: #113;
@ -358,7 +357,7 @@ div.news {
-moz-box-shadow: inset 0px 0px 1px 1px #bbf; -moz-box-shadow: inset 0px 0px 1px 1px #bbf;
-khtml-box-shadow: inset 0px 0px 1px 1px #bbf; -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
box-shadow: inset 0px 0px 1px 1px #bbf; box-shadow: inset 0px 0px 1px 1px #bbf;
background: #ffe url('images/magic.png') center bottom; background: #f0f0f0;
min-width: 490px; min-width: 490px;
} }
@ -716,11 +715,11 @@ h1 {
-khtml-box-shadow: inset 0px 0px 1px 1px #bbf; -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
box-shadow: inset 0px 0px 1px 1px #bbf; box-shadow: inset 0px 0px 1px 1px #bbf;
white-space: normal; white-space: normal;
background: #ffe url('images/magic.png') center center repeat; background: #f0f0f0;
border: 1px solid #447; border: 1px solid #447;
border-radius: 4px; border-radius: 8px 8px 4px 4px;
-moz-border-radius: 4px; -moz-border-radius: 8px 8px 4px 4px;
-khtml-border-radius: 4px; -khtml-border-radius: 8px 8px 4px 4px;
min-width: 500px; min-width: 500px;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB