feat: support padding option for chart

This commit is contained in:
vicanso 2021-12-18 12:01:16 +08:00
parent c0170bf250
commit 9db6bcab1b
3 changed files with 25 additions and 6 deletions

View file

@ -133,6 +133,14 @@ type ThemeColorPalette struct {
Theme string
}
type PieThemeColorPalette struct {
ThemeColorPalette
}
func (tp PieThemeColorPalette) TextColor() drawing.Color {
return getTextColor("")
}
func (tp ThemeColorPalette) BackgroundColor() drawing.Color {
return getBackgroundColor(tp.Theme)
}