diff options
author | GaoFei <strivek@icloud.com> | 2022-10-15 00:03:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 00:03:49 +0800 |
commit | 3ece904b0082f4d63afe0d795b61c860d0790c83 (patch) | |
tree | cd747622903878bb6bb4828f56c97cf3c5da76a9 /drawing.go | |
parent | 3d02726ad4dc3bc6a92d5b68ef8421ac4db44076 (diff) |
This closes #1369, support set, and get font color with theme and tint (#1370)
Diffstat (limited to 'drawing.go')
-rw-r--r-- | drawing.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1177,14 +1177,14 @@ func (f *File) drawPlotAreaTxPr(opts *chartAxisOptions) *cTxPr { }, } if opts != nil { - cTxPr.P.PPr.DefRPr.B = opts.NumFont.Bold - cTxPr.P.PPr.DefRPr.I = opts.NumFont.Italic - if idx := inStrSlice(supportedDrawingUnderlineTypes, opts.NumFont.Underline, true); idx != -1 { + cTxPr.P.PPr.DefRPr.B = opts.Font.Bold + cTxPr.P.PPr.DefRPr.I = opts.Font.Italic + if idx := inStrSlice(supportedDrawingUnderlineTypes, opts.Font.Underline, true); idx != -1 { cTxPr.P.PPr.DefRPr.U = supportedDrawingUnderlineTypes[idx] } - if opts.NumFont.Color != "" { + if opts.Font.Color != "" { cTxPr.P.PPr.DefRPr.SolidFill.SchemeClr = nil - cTxPr.P.PPr.DefRPr.SolidFill.SrgbClr = &attrValString{Val: stringPtr(strings.ReplaceAll(strings.ToUpper(opts.NumFont.Color), "#", ""))} + cTxPr.P.PPr.DefRPr.SolidFill.SrgbClr = &attrValString{Val: stringPtr(strings.ReplaceAll(strings.ToUpper(opts.Font.Color), "#", ""))} } } return cTxPr |