Changeset 624badf


Ignore:
Timestamp:
Nov 11, 2011 2:50:55 AM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
fcbee9d9
Parents:
4677b27
Message:
  • Console:
    • Less magic and fix img sizes, for speed and less artifacts while rendering
    • CSS tweaks
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java

    r4677b27 r624badf  
    2929        String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME, CSSHelper.DEFAULT_THEME);
    3030       
    31         buf.append("<a href=\"/\" target=\"_top\"><img src=\"")
     31        // TODO - the bar would render more cleanly if we specified the img height and width here,
     32        // but unfortunately the images in the different themes are different sizes.
     33        // They range in height from 37 to 43 px. But there's a -2 bottom margin...
     34        // So put it in a div.
     35        buf.append("<div style=\"height: 36px;\"><a href=\"/\" target=\"_top\"><img src=\"")
    3236           .append(CSSHelper.BASE_THEME_PATH)
    3337           .append(theme)
     
    3640           .append("\" title=\"")
    3741           .append(_("I2P Router Console"))
    38            .append("\"></a><hr>")
     42           .append("\"></a></div><hr>")
    3943           
    4044           .append("<h3><a href=\"/help\" target=\"_top\" title=\"")
  • apps/routerconsole/jsp/index.jsp

    r4677b27 r624badf  
    3737 <div class="welcome">
    3838  <div class="langbox">
    39     <a href="/?lang=en&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a>
    40     <a href="/?lang=ar&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a>
    41     <a href="/?lang=zh&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=cn" title="中文" alt="中文"></a>
    42     <a href="/?lang=da&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=dk" title="Danish" alt="Danish"></a>
    43     <a href="/?lang=de&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=de" title="Deutsch" alt="Deutsch"></a>
    44     <a href="/?lang=es&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=es" title="Español" alt="Español"></a>
    45     <a href="/?lang=fi&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=fi" title="Suomi" alt="Suomi"></a>
    46     <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>
    47     <a href="/?lang=it&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a>
    48     <a href="/?lang=nl&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=nl" title="Nederlands" alt="Nederlands"></a>
    49     <a href="/?lang=pl&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=pl" title="Polski" alt="Polski"></a>
    50     <a href="/?lang=pt&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=pt" title="Português" alt="Português"></a>
    51     <a href="/?lang=ru&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Русский" alt="Русский"></a>
    52     <a href="/?lang=sv&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=se" title="Svenska" alt="Svenska"></a>
    53     <a href="/?lang=uk&amp;consoleNonce=<%=consoleNonce%>"><img style="padding: 0 2px;" src="/flags.jsp?c=ua" title="Ukrainian" alt="Ukrainian"></a>
    54     <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>
     39    <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>
     40    <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>
     41    <a href="/?lang=zh&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="中文" alt="中文"></a>
     42    <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>
     43    <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>
     44    <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>
     45    <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>
     46    <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>
     47    <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>
     48    <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>
     49    <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>
     50    <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>
     51    <a href="/?lang=ru&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Русский" alt="Русский"></a>
     52    <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>
     53    <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>
     54    <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>
    5555  </div>
    5656  <a name="top"></a>
  • installer/resources/themes/console/light/console.css

    r4677b27 r624badf  
    66     margin: 10px 0px -10px 10px;
    77     text-align: center;
    8      background: #ffe url('images/snowcamo.png');
    98     color: #000;
    109     font: 10pt/130% "Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
    11      background: #99f url('images/magic.png') center bottom;
     10     background: #9696ff url('images/snowcamo.png');
    1211}
    1312
     
    9897     font-size: 8pt;
    9998     clear: left;/* fixes a bug in Opera */
    100      -moz-border-radius: 4px;
    101      -khtml-border-radius: 4px;
    102      border-radius: 4px;
    103      background: #ffe url('images/magic.png') center bottom;
     99     -moz-border-radius: 8px;
     100     -khtml-border-radius: 8px;
     101     border-radius: 8px;
     102     background: #f0f0f0;
    104103     -moz-box-shadow: inset 0px 0px 1px 1px #bbf;
    105104     -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
     
    163162     margin: -6px -6px -7px !important;
    164163     padding: 3px 3px 5px 3px;
    165      background: #ddf url(images/magic.png);
     164     background: #dbdbf5;
    166165     text-transform: capitalize;
    167166     text-decoration: none !important;
     
    313312     margin: 10px 10px 20px 207px;
    314313     padding: 0 15px 15px 15px;
    315      background: #ffe;
    316314     text-align: left;
    317315     color: #001;
     
    325323     -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
    326324     box-shadow: inset 0px 0px 1px 1px #bbf;
    327      background: #ffe url('images/magic.png') center bottom;}
     325     background: #f0f0f0;
     326}
    328327
    329328div.main hr, hr {
     
    359358     -khtml-box-shadow: inset 0px 0px 1px 1px #bbf;
    360359     box-shadow: inset 0px 0px 1px 1px #bbf;
    361      background: #ffe url('images/magic.png') center bottom;
     360     background: #f0f0f0;
    362361     min-width: 490px;
    363362}
     
    717716     box-shadow: inset 0px 0px 1px 1px #bbf;
    718717     white-space: normal;
    719      background: #ffe url('images/magic.png') center center repeat;
    720      border: 1px solid #447;
    721      border-radius: 4px;
    722      -moz-border-radius: 4px;
    723      -khtml-border-radius: 4px;
     718     background: #f0f0f0;
     719     border: 1px solid #447;
     720     border-radius: 8px 8px 4px 4px;
     721     -moz-border-radius: 8px 8px 4px 4px;
     722     -khtml-border-radius: 8px 8px 4px 4px;
    724723     min-width: 500px;
    725724}
Note: See TracChangeset for help on using the changeset viewer.