Date: prev next · Thread: first prev next last
March 2013 Archives by date, by thread · List index


Hi,

I'm looking for input on a proposed fix for a doc compatibility issue (fdo#61993, patch: https://gerrit.libreoffice.org/2601)

In Writer when a font colour is set to "automatic" (which is the default), it will be set to black or white depending on whether the background is "dark".

Microsoft Word does the same thing, except it has a different idea about what background colours are considered to be "dark". This leads to compatibility problems when importing and exporting doc/docx file formats.

My tentative proposal was to change LibreOffice's definition of "dark" to match Microsoft Office more closely.

Specifically a colour would be considered "dark" if its luminence is <= 60 (on a scale from 0 to 255). Currently it is considered "dark" if its luminence is <= 38.

Putting aside questions of compatibility, I think this does actually produce a visually better result.

What do you think?

Another perhaps separate issue is that the code which decides whether a colour is dark is used for a number of different purposes, not just for word processor documents. For example I see a calls to it from VCL code relating to user interface themes. How scary is it to change the definition of "dark" across the whole application?

Regards,
Luke.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.