Re: System-wide dark mode

2019-06-06 Thread Germán Poo-Caamaño
On Thu, 2019-06-06 at 11:41 +0200, Milan Crha via desktop-devel-list
wrote:
> On Wed, 2019-06-05 at 23:14 +0500, Alexander via desktop-devel-list
> wrote:
> > Since WebKit supports Apple's dark mode now, I wonder if mail
> > clients (and also Devhelp/Builder) will be able to provide styles
> > for
> > dark mode with that.
> 
> from one of the mail application point of view (being it Evolution
> here), the problem with HTML mails is that some clients did/do
> generate HTML where they declare only text color, but no background
> color, and bet the text color is black. Black text color on a dark
> theme background is not ideal for reading, thus the HTML mails are
> set to use white background by default. When you count all the (not
> only) CSS tricks and various elements it's not that easy to change
> the color of the text in an HTML code generated by "random" mail
> client. I know it's awful and bad for eyes in the dark theme, but
> there was not found anything better.

A workaround is using a "darker" background that still plays nice with
black text.

-- 
Germán Poo-Caamaño
https://calcifer.org/




signature.asc
Description: This is a digitally signed message part
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: System-wide dark mode

2019-06-06 Thread mcatanzaro

On Wed, Jun 5, 2019 at 1:14 PM, Alexander  wrote:
Since WebKit supports Apple's dark mode now, I wonder if mail clients 
(and also Devhelp/Builder) will be able to provide styles for dark 
mode with that.


Well we really don't, not yet. That's what I've been trying to say

Once we do, mailers could add color-schemes to the CSS to indicate 
support for dark mode. That will be automatically supported once 
WebKitGTK supports the color-schemes property. If Apple Mail already 
supports this, as I suspect, then mailers will start using it soon.


Like Milan says, it will never be safe to use for arbitrary HTML mails. 
HTML is always going to need to opt-in.


Michael


___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: System-wide dark mode

2019-06-06 Thread Milan Crha via desktop-devel-list
On Wed, 2019-06-05 at 23:14 +0500, Alexander via desktop-devel-list
wrote:
> Since WebKit supports Apple's dark mode now, I wonder if mail
> clients (and also Devhelp/Builder) will be able to provide styles for
> dark mode with that.

Hi,
from one of the mail application point of view (being it Evolution
here), the problem with HTML mails is that some clients did/do generate
HTML where they declare only text color, but no background color, and
bet the text color is black. Black text color on a dark theme
background is not ideal for reading, thus the HTML mails are set to use
white background by default. When you count all the (not only) CSS
tricks and various elements it's not that easy to change the color of
the text in an HTML code generated by "random" mail client. I know it's
awful and bad for eyes in the dark theme, but there was not found
anything better.

Plain text messages are different, there's no formatting, thus the
user's theme is respected with them.
Bye,
Milan

___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list