Offset uniqueness in vector of ColorSteps

Tomaž Vajngerl quikee at gmail.com
Wed Mar 22 08:08:11 UTC 2023


Hi Armin and Regina,

On Wed, Mar 15, 2023 at 7:08 AM Regina Henschel <rb.henschel at t-online.de>
wrote:

> Hi Armin,
>
> A further remark: We have in the meantime "Theme Colors". LO7.6 does not
> yet save theme colors to <draw:gradient>. But you can already have a
> solid fill with a theme color combined with a transparency gradient. Do
> you have already ideas about "Theme Colors" in gradients? Such is needed
> for roundtrip with OOXML.
>

Yes, a gradient stop would need to have a theme color associated. Currently
in UNO I am adding a new property that has a css::util::XThemeColor for
every color property that I want to be theme-able, but the colors in OOXML
are much more powerful - where a color can be RGB, HSL, a scheme color,
which each can also have a list of color transformations (used to specify
alpha transparency for a color among other things). If we want better
fidelity with OOXML, we probably need to add a more powerful color UNO API
than just a simple RGB color definition (clearly missing at least alpha).

Looking at the com::sun::star::awt::ColorStop I would prefer it to be more
easily extendable - probably best to be an XInterface or something. I will
quite soon have to add at least a XThemeColor element to the ColorStop, so
I can add theme colors support for the gradients. Another missing thing is
alpha support, which is missing but supported in OOXML and MSO office
supports setting that on the UI.

Thoughts?


> Kind regards,
> Regina
>

Tomaž
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230322/6b9f991b/attachment.htm>


More information about the LibreOffice mailing list