[Xfce4-commits] <postler:master> Specify size and colour in classes for header and body
Christian Dywan
noreply at xfce.org
Sat Jul 10 00:24:16 CEST 2010
Updating branch refs/heads/master
to d67819786342f928af19353164098d34703c22c8 (commit)
from f68e97299923bdcf2f2ff898bf25e1f005f6ba49 (commit)
commit d67819786342f928af19353164098d34703c22c8
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jul 1 22:19:42 2010 +0200
Specify size and colour in classes for header and body
postler/postler-content.vala | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index be5ae5b..1625b8f 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -43,6 +43,15 @@ public class Postler.Content : WebKit.WebView {
public bool view_source { get; set; }
const string style_sheet = """
+ .headers {
+ display: block;
+ background-color: Window !important; color: WindowText !important;
+ font: 9pt sans-serif !important;
+ }
+ .body {
+ background-color: Window !important; color: WindowText !important;
+ font: 10pt sans-serif !important;
+ }
/* Quotations */
blockquote {
margin: 1em;
@@ -599,6 +608,7 @@ public class Postler.Content : WebKit.WebView {
load_string ("""
<style text="text/css">%s</style>
+ <span class="headers">
<div style="float: right;">%s</div>
<b>%s</b> %s<br>
%s
@@ -607,7 +617,8 @@ public class Postler.Content : WebKit.WebView {
%s
%s
%s
- <p style="%s">%s</p>
+ </span>
+ <p class="body" style="%s">%s</p>
""".
printf (style_sheet,
date,
More information about the Xfce4-commits
mailing list