diff options
author | xuri <xuri.me@gmail.com> | 2022-10-24 00:02:22 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-24 00:52:09 +0800 |
commit | 14c6a198ce27b44fcce5447a2b757ce403ebb8fc (patch) | |
tree | a59eea77f6e6d691a1015afa2b3629cbe7cc695b /styles.go | |
parent | f843a9ea56710deb4cdb77ea2cd3a08d8d82d3e6 (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.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |