feat: support padding option for chart
This commit is contained in:
parent
c0170bf250
commit
9db6bcab1b
3 changed files with 25 additions and 6 deletions
8
theme.go
8
theme.go
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue