New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FgColor.Indexed got a wrong color from IndexedColorMapping #1521
Comments
Thanks for your issue. Their custom index colors are mapped in your attachment workbook, so you can't use the default |
The new function |
…x-os#1574) - Add new function GetStyle support for get style definition
f, _ := excelize.OpenFile("test.xlsx")
style, _ := f.GetCellStyle("Sheet1", "B2")
fillID := *f.Styles.CellXfs.Xf[style].FillID
fgColor := f.Styles.Fills.Fill[fillID].PatternFill.FgColor
fmt.Println(excelize.IndexedColorMapping[fgColor.Indexed])
expect: 499d73
actual: 800000
test.xlsx
The text was updated successfully, but these errors were encountered: