summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-24 00:02:22 +0800
committerxuri <xuri.me@gmail.com>2022-10-24 00:52:09 +0800
commit14c6a198ce27b44fcce5447a2b757ce403ebb8fc (patch)
treea59eea77f6e6d691a1015afa2b3629cbe7cc695b /styles.go
parentf843a9ea56710deb4cdb77ea2cd3a08d8d82d3e6 (diff)
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
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go4
1 files changed, 4 insertions, 0 deletions
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