You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your issue. There 3 kinds of colors for the text in the spreadsheet: hex color, indexed color, and theme color. The priority of these colors is hex color takes precedence over theme color, and the theme color takes precedence over indexed color. The fields: Color, ColorIndexed, and ColorTheme in the Font data type represent these 3 colors. This library just added a new function GetBaseColor, which supports converting and returns the preferred hex color code from these 3 colors. Please upgrade to the master branch code, and this feature will be released in the next version. In addition, the color also supports applying tint value based on the hex color, so we need to use the ThemeColor function to apply the tint for the based color to get the calculated hex color value. Here is an example for your reference:
Description
"GetCellRichText" and "GetStyle" method do not set font color when white
Steps to reproduce the issue:
1.Call the "GetCellRichText" method for the cell set like the attached image
Describe the results you received:
Color: ""
Describe the results you expected:
Color: "FFFFFF"
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: