summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cell.go b/cell.go
index 80eb035..550ca38 100644
--- a/cell.go
+++ b/cell.go
@@ -823,6 +823,10 @@ func getCellRichText(si *xlsxSI) (runs []RichTextRun) {
font.Strike = v.RPr.Strike != nil
if v.RPr.Color != nil {
font.Color = strings.TrimPrefix(v.RPr.Color.RGB, "FF")
+ if v.RPr.Color.Theme != nil {
+ font.ColorTheme = v.RPr.Color.Theme
+ }
+ font.ColorTint = v.RPr.Color.Tint
}
run.Font = &font
}
@@ -879,9 +883,7 @@ func newRpr(fnt *Font) *xlsxRPr {
if fnt.Size > 0 {
rpr.Sz = &attrValFloat{Val: &fnt.Size}
}
- if fnt.Color != "" {
- rpr.Color = &xlsxColor{RGB: getPaletteColor(fnt.Color)}
- }
+ rpr.Color = newFontColor(fnt)
return &rpr
}