refactor: adjust theme of chart
This commit is contained in:
parent
910e2dc422
commit
3a9897f9ad
5 changed files with 79 additions and 44 deletions
6
theme.go
6
theme.go
|
|
@ -31,6 +31,12 @@ type Theme struct {
|
|||
mode string
|
||||
}
|
||||
|
||||
func NewTheme(mode string) *Theme {
|
||||
return &Theme{
|
||||
mode: mode,
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Theme) IsDark() bool {
|
||||
return t.mode == ThemeDark
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue