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

List:       kmail-devel
Subject:    Re: [PATCH] Enlarging the boxes for encrypted/signed messages
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2002-01-06 14:58:06
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 06 January 2002 12:18, Ingo Klöcker wrote:
<snip>
> The problem with an external css file is that still all colors and
> the text font/size/style will have to be set by KMail.

I'm currently doing it this way:
There's a kmail_reader.css.template in the global apps/kmail. It 
contains the complete css sheet with placeholders for the values that 
can be configured.
Additionally, there'll be a KURLRequester where the user can enter a 
custom stylesheet.
The plan is that the configure dialog takes this sheet, substitutes the 
placeholders with the values and writes apps/kmail/kmail_reader.css to 
the local kdedir.
kmreaderwin.cpp then finds that stylesheet with locate() and the custom 
stylesheet according to the user's entered location and puts both into 
successive <link type="stylesheet"...> tags so that the custom ss can 
override things in kmail_reader.css.

If nothing else, this should speed up the rendering of messages, because 
khtml will probably cache the stylesheet (or we could extract it after 
loading and put it back before writing a new mail - whatever konqi does 
there). Also, it enables non-programmers to deeply change the 
appearance of the reader. There could even be language-dependent tweaks 
if need be.

And as if that wouldn't already be enough: it should also greatly 
simplify the kmreader code that deals with generating html.

> So IMO using
> an external css doesn't give the power user very much power. And as
> long as we don't support identity-dependant css files a power user
> can simply change the source and recompile.
<snip>

Poweruser != programmer in the general case. Also, the fact that all 
layout-related stuff if in a central place makes changing things 
extremely more efficient.

Marc

- -- 
The illegal we do immediately.
The unconstitutional takes a bit longer.            -- Henry Kissinger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8OGX/3oWD+L2/6DgRAhCeAKDRiO1MviogSsGQoo6sLMy13k2l2QCgxxD/
Qapf5ersS4TXc1g6zGlnFEQ=
=uEpZ
-----END PGP SIGNATURE-----

_______________________________________________
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