From 14c6a198ce27b44fcce5447a2b757ce403ebb8fc Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 24 Oct 2022 00:02:22 +0800 Subject: Support get cell value which contains a date in the ISO 8601 format - Support set and get font color with indexed color - New export variable `IndexedColorMapping` - Fix getting incorrect page margin settings when the margin is 0 - Update unit tests and comments typo fixes - ref #65, new formula functions: AGGREGATE and SUBTOTAL --- styles.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'styles.go') diff --git a/styles.go b/styles.go index bbb21dc..15de5f1 100644 --- a/styles.go +++ b/styles.go @@ -2164,6 +2164,10 @@ func newFontColor(font *Font) *xlsxColor { prepareFontColor() fontColor.RGB = getPaletteColor(font.Color) } + if font.ColorIndexed >= 0 && font.ColorIndexed <= len(IndexedColorMapping)+1 { + prepareFontColor() + fontColor.Indexed = font.ColorIndexed + } if font.ColorTheme != nil { prepareFontColor() fontColor.Theme = font.ColorTheme -- cgit v1.2.1