[Libreoffice-bugs] [Bug 138129] Add color picker to starmath

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Nov 17 19:51:37 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138129

--- Comment #2 from dante19031999 at gmail.com ---
(In reply to V Stuart Foote from comment #1)
> @Dante, replacing [1] the prior fixed SM color scheme (black, white, cyan,
> magenta, red, blue, green, or yellow) with selection of the X11, SVG 1.0,
> CSS2/CSS3 derived colors might not be the best choice. 
> 
> It will result in OLE formulas in line on canvas with color theme that does
> not match the default RGB color names we implemented for Standard colors
> (bug 114719).
> 
> Working with the OLE on canvas, users would have to switch the color picker
> over to the 'html' theme to be able to match the document text to the
> formulas.
> 
> Naming is not critical--as we pass colors out without the color name, but
> expect these new expanded _SM_ static colors (name & RGB hex) *should* match
> value of the 'html' color palette (bug 104048). I did not check.
> 
> Otherwise, I had kind of hoped to find a way to have our full color picker
> dialog available to SM to pick colors from *any* palette -- thus far this
> only expanded the formula 'color' attributes to a subset of the normative
> [2] standard.
> 
> 
> =-ref-=
> [1] https://gerrit.libreoffice.org/c/core/+/105892
> [2] https://en.wikipedia.org/wiki/Web_colors

I'm not really sure to understand.
The palettes we dispose on starmath are HTML ( made from MDN documentation ),
even if not visible on UI, and dvipsnames is on work ( color dvip colorname,
follow overleaf documentation ).
On core/starmath/starmathdatabase there are also functions that allow to
identify a color name.
That bug seems to be closed. And the colors definitions match the documentation
ones.
It is possible to add X11 colors. Something like color x colorname or even
colorx colorname. Have to check if there's a list somewhere or if I have to
define them _SM_. And also other palettes can be added.
I added as naturals the HTML colors because the previous colors where already
following the HTML standard and not X11. Changing they're definitions to match
X11 would break old documents.
For now the color picker can only have the HTML palette. But I can keep adding
colors as long as there is someone willing to do the UI work. If interested I
can explain you how does work starmath color identifier to pass them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201117/f4455095/attachment.htm>


More information about the Libreoffice-bugs mailing list