diff options
author | dante <dante19031999@gmail.com> | 2020-11-15 10:11:16 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-17 13:58:13 +0100 |
commit | 0643dab6819bdf248321d27f6b58a2cce125e51c (patch) | |
tree | af4e2eb9ea2bd598049ed0c588675c948bb1ab15 /starmath/source/mathmlimport.cxx | |
parent | 00944232373588fa32bcbb7ce6fcd01204346241 (diff) |
Starmath has now full support of HTML colors.
Some of them have been added to the UI ( from Css3 ).
There was not a criteria for color picking so I chose those whose name told me something, those I liked and some to have a more complete palette.
It would be nice to be able to ask our users whose colors from https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_Keywords they want in the UI.
The color names have been left in alphabetical order.
Starmathdatabse has clang format.
Change-Id: I6ac1bdbc9e3ed10bff75a99b90bf92d3dcdcabcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105892
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 7a3ca34b9a5a..543a8d02fcb2 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -698,7 +698,9 @@ void SmXMLContext_Helper::ApplyAttrs() { std::unique_ptr<SmColorTokenTableEntry> aSmColorTokenTableEntry; aSmColorTokenTableEntry = starmathdatabase::Identify_ColorName_HTML( sColor ); - if( aSmColorTokenTableEntry ) + if( aSmColorTokenTableEntry->eType == TRGB ) + aSmColorTokenTableEntry = starmathdatabase::Identify_Color_Parser( sal_uInt32(aSmColorTokenTableEntry->cColor) ); + if( aSmColorTokenTableEntry->eType != TERROR ) { aToken = aSmColorTokenTableEntry; std::unique_ptr<SmFontNode> pFontNode(new SmFontNode(aToken)); |