diff options
author | Radek Doulik <rodo@ximian.com> | 2003-11-24 09:38:11 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2003-11-24 09:38:11 +0800 |
commit | 1496e35c9cd57e31eb58a1fa6792d60b842bf941 (patch) | |
tree | 46b10563d5e83d70a01146acc5fb79bc386798ed /mail/em-format-html.c | |
parent | f55887cb8903b8e6a27ce4682050e6668859ecc1 (diff) | |
download | gsoc2013-evolution-1496e35c9cd57e31eb58a1fa6792d60b842bf941.tar.gz gsoc2013-evolution-1496e35c9cd57e31eb58a1fa6792d60b842bf941.tar.zst gsoc2013-evolution-1496e35c9cd57e31eb58a1fa6792d60b842bf941.zip |
use new colors (efh_text_html): ditto
2003-11-24 Radek Doulik <rodo@ximian.com>
* em-format-html.c (efh_text_plain): use new colors
(efh_text_html): ditto
* em-format-html-display.c (efhd_gtkhtml_realise): set new colors
according to style
* em-format-html.c (efh_init): init new colors
* em-format-html.h: added frame and content colors
svn path=/trunk/; revision=23477
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index d7929a0a18..e1ef6be129 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -136,6 +136,8 @@ efh_init(GObject *o) efh->body_colour = 0xeeeeee; efh->text_colour = 0; + efh->frame_colour = 0x3f3f3f; + efh->content_colour = 0xffffff; efh->text_html_flags = CAMEL_MIME_FILTER_TOHTML_CONVERT_NL | CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES | CAMEL_MIME_FILTER_TOHTML_MARK_CITATION; } @@ -658,9 +660,10 @@ efh_text_plain(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFo int i, count; camel_stream_printf (stream, - "<table bgcolor=darkgray cellspacing=0 cellpadding=1 width=100%%><tr><td>\n" - "<table bgcolor=white cellspacing=0 cellpadding=0 width=100%%><tr><td>\n" - "<table cellspacing=0 cellpadding=10><td><tr>\n"); + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=1 width=100%%><tr><td>\n" + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=0 width=100%%><tr><td>\n" + "<table cellspacing=0 cellpadding=10><td><tr>\n", + efh->frame_colour & 0xffffff, efh->content_colour & 0xffffff); flags = efh->text_html_flags; @@ -770,10 +773,11 @@ efh_text_html(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFor const char *location, *base; EMFormatPURI *puri; - camel_stream_write_string(stream, - "<table bgcolor=darkgray cellspacing=0 cellpadding=1 width=100%%><tr><td>\n" - "<table bgcolor=white cellspacing=0 cellpadding=0 width=100%%><tr><td>\n" - "<!-- text/html -->\n"); + camel_stream_printf (stream, + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=1 width=100%%><tr><td>\n" + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=0 width=100%%><tr><td>\n" + "<!-- text/html -->\n", + efh->frame_colour & 0xffffff, efh->content_colour & 0xffffff); if ((base = camel_medium_get_header((CamelMedium *)part, "Content-Base"))) { char *base_url; |