From 1496e35c9cd57e31eb58a1fa6792d60b842bf941 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 24 Nov 2003 01:38:11 +0000 Subject: use new colors (efh_text_html): ditto 2003-11-24 Radek Doulik * 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 --- mail/em-format-html.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'mail/em-format-html.c') 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, - "
\n" - "
\n" - "\n"); + "
\n" + "
\n" + "\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, - "
\n" - "
\n" - "\n"); + camel_stream_printf (stream, + "
\n" + "
\n" + "\n", + efh->frame_colour & 0xffffff, efh->content_colour & 0xffffff); if ((base = camel_medium_get_header((CamelMedium *)part, "Content-Base"))) { char *base_url; -- cgit v1.2.3