From 0e9bfba84de82b62e18fabea3f13e735021bf447 Mon Sep 17 00:00:00 2001 From: z3d Date: Mon, 20 Jul 2009 15:37:11 +0000 Subject: [PATCH] Mostly cosmetic tweaks to SusiMail UI. --- apps/susidns/src/css.css | 26 +++------ apps/susimail/src/css.css | 35 ++++++++++-- .../src/src/i2p/susi/webmail/WebMail.java | 56 +++++++++---------- 3 files changed, 66 insertions(+), 51 deletions(-) diff --git a/apps/susidns/src/css.css b/apps/susidns/src/css.css index 0db3ed7a5..0ee2432d6 100644 --- a/apps/susidns/src/css.css +++ b/apps/susidns/src/css.css @@ -109,28 +109,16 @@ p.footer { background: #fff; } -.page { - margin: 10px; - padding: 10px; - -moz-border-radius: 4px; - -khtml-border-radius: 4px; - border-radius: 4px; - border: 1px solid #001; - font-size: 10pt; - -moz-box-shadow: inset 0px 0px 1px 0px #002; - background: #fff; -} - .page { background-color: #fff; color:#001; margin: 20px; padding: 10px 20px 20px 20px; - -moz-border-radius: 4px; - -khtml-border-radius: 4px; - border-radius: 4px; - border: 1px solid #001; - font-size: 10pt !important; - line-height: 160% !important; - -moz-box-shadow: inset 0px 0px 1px 0px #002; + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + border-radius: 4px; + border: 1px solid #001; + font-size: 10pt !important; + line-height: 160% !important; + -moz-box-shadow: inset 0px 0px 1px 0px #002; } \ No newline at end of file diff --git a/apps/susimail/src/css.css b/apps/susimail/src/css.css index 59b6e0c46..25cef948b 100644 --- a/apps/susimail/src/css.css +++ b/apps/susimail/src/css.css @@ -1,9 +1,11 @@ body { - background-color:white; + background-color: #eef; + color:#001; + font-family:"Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif; } li { - font-family:Verdana,Tahoma,Arial,Helvetica; + color:black; line-height:12pt; font-size:10pt; @@ -12,7 +14,7 @@ li { } p { - font-family:Verdana,Tahoma,Arial,Helvetica; + color:black; line-height:12pt; margin-left:5mm; @@ -67,7 +69,7 @@ a:hover { } td { - font-family:Verdana,Tahoma,Arial,Helvetica; + color:black; line-height:12pt; margin-left:5mm; @@ -93,4 +95,29 @@ pre { font-family:Courier-Fixed; margin-left:1cm; margin-right:1cm; +} + +.page { + background-color: #fff; + color:#001; + margin: 20px; + padding: 0 20px; + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + border-radius: 4px; + border: 1px solid #001; + font-size: 10pt !important; + line-height: 160% !important; + -moz-box-shadow: inset 0px 0px 1px 0px #002; + text-align: center; +} + +table { + text-align: center; + width: 100%; +} + +th { + font-size: 10pt; + font-weight: bold; } \ No newline at end of file diff --git a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java index 8d3086c74..12d48e734 100644 --- a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java +++ b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java @@ -503,7 +503,7 @@ public class WebMail extends HttpServlet } } if( html ) - out.println( "" ); + out.println( "" ); if( reason != null && reason.length() > 0 ) { if( html ) out.println( "

"); @@ -1271,7 +1271,7 @@ public class WebMail extends HttpServlet * write header */ out.println( "\nsusimail v0." + version + " - " + subtitle + - "\n\n\n\n

\"Susimail\"
 

\n
" ); + "\n\n\n\n

\"Susimail\"
 

\n" ); if( sessionObject.error != null && sessionObject.error.length() > 0 ) { out.println( "

" + sessionObject.error + "

" ); @@ -1294,7 +1294,7 @@ public class WebMail extends HttpServlet else if( sessionObject.state == STATE_NEW ) showCompose( out, sessionObject, request ); - out.println( "\n

susimail v0." + version +" " + ( RELEASE ? "release" : "development" ) + " © 2004-2005 susi\n"); + out.println( "


susimail v0." + version +" " + ( RELEASE ? "release" : "development" ) + " © 2004-2005 susi

\n"); out.flush(); } } @@ -1539,26 +1539,26 @@ public class WebMail extends HttpServlet sessionObject.body = null; out.println( "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "" ); + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "" ); if( sessionObject.attachments != null && sessionObject.attachments.size() > 0 ) { boolean wroteHeader = false; for( Iterator it = sessionObject.attachments.iterator(); it.hasNext(); ) { if( !wroteHeader ) { - out.println( "" ); + out.println( "" ); wroteHeader = true; } Attachment attachment = (Attachment)it.next(); - out.println( ""); + out.println( ""); } } out.println( "

From:
To:
Cc:
Bcc:
Subject:
 Bcc to self
" + - "

New Attachment:

From:
To:
Cc:
Bcc:
Subject:
 Bcc to self
" + + "

New Attachment:
Attachments:
Attachments:
 " + attachment.getFileName() + "
 " + attachment.getFileName() + "
" ); @@ -1576,11 +1576,11 @@ public class WebMail extends HttpServlet String smtp = Config.getProperty( CONFIG_PORTS_SMTP, "" + DEFAULT_SMTPPORT ); out.println( "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + "\n" + "
User
Pass
Host
POP3-Port
SMTP-Port
User
Pass
Host
POP3-Port
SMTP-Port
Create Account " + button( LOGIN, "Login" ) + "
"); } @@ -1686,21 +1686,21 @@ public class WebMail extends HttpServlet button( LOGOUT, "Logout" ) ); if( mail != null ) { out.println( "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "" ); + "\n" + + "\n" + + "\n" + + "\n" + + "" ); if( mail.body != null ) { showPart( out, mail.part, 0, SHOW_HTML ); } else { - out.println( "" ); + out.println( "" ); } } else { - out.println( "" ); + out.println( "" ); } - out.println( "\n

From:" + quoteHTML( mail.formattedSender ) + "
Date:" + mail.quotedDate + "
Subject:" + quoteHTML( mail.formattedSubject ) + "


From:" + quoteHTML( mail.formattedSender ) + "
Date:" + mail.quotedDate + "
Subject:" + quoteHTML( mail.formattedSubject ) + "

Could not fetch mail body.

Could not fetch mail body.

Could not fetch mail.

Could not fetch mail.


" ); + out.println( "
\n" ); } }