[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Bug#32028: KMail Print fonts too large
From:       Michael =?iso-8859-1?q?H=E4ckel?= <haeckel () kde ! org>
Date:       2001-11-23 8:10:42
[Download RAW message or body]

On Friday 23 November 2001 00:20, Ingo Klöcker wrote:
>
> Does KHTML support the CSS2 media stuff? If yes, we could write
> different styles for printing and for viewing on screen.

It does meanwhile. However there appear still do be a few problems when using 
them from within KMail. for exmaple the attached patch doesn't work. It 
disables the PGP colours also for the screen although the same HTML code 
works in Konqueror. Martijn Klingens promised to work on that.

Regards,
Michael Häckel
["media.diff" (text/x-diff)]

? space.diff
? media.diff
Index: kmreaderwin.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/kmreaderwin.cpp,v
retrieving revision 1.336
diff -u -3 -p -r1.336 kmreaderwin.cpp
--- kmreaderwin.cpp	2001/11/15 05:31:36	1.336
+++ kmreaderwin.cpp	2001/11/15 19:44:28
@@ -614,8 +614,8 @@ void KMReaderWin::parseMsg(void)
                          "color: #%3; background-color: #%4; }\n")
                  .arg( mBodyFamily ).arg( fntSize ).arg(colorToString(c1)).arg(colorToString(c4)) +
 		 QString("a { color: #%1; ").arg(colorToString(c2)) +
-		 "text-decoration: none; }" + // just playing
-                 QString( "table.encr { background-color: #%1; "
+		 "text-decoration: none; } " + // just playing
+                 QString( "@media screen { table.encr { background-color: #%1; "
                           "border-width: 0px; }\n" )
                  .arg( colorToString( cPgpOkF ) ) +
                  QString( "tr.encrH { background-color: #%1; "
@@ -645,7 +645,7 @@ void KMReaderWin::parseMsg(void)
                  QString( "tr.signErrH { background-color: #%1; "
                           "font-weight: bold; }\n" )
                  .arg( colorToString( cPgpErrH ) ) +
-                 QString( "tr.signErrB { background-color: #%1; }\n" )
+                 QString( "tr.signErrB { background-color: #%1; } }\n" )
                  .arg( colorToString( cPgpErrB ) ) +
 		 "</style></head><body " +
 		 // TODO: move these to stylesheet, too:

_______________________________________________
kmail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic