feat: support detect color dark or light
This commit is contained in:
parent
a42d0727df
commit
55eca7b0b9
6 changed files with 59 additions and 9 deletions
13
theme.go
13
theme.go
|
|
@ -76,6 +76,19 @@ const defaultFontSize = 12.0
|
|||
|
||||
var defaultTheme ColorPalette
|
||||
|
||||
var defaultLightFontColor = drawing.Color{
|
||||
R: 70,
|
||||
G: 70,
|
||||
B: 70,
|
||||
A: 255,
|
||||
}
|
||||
var defaultDarkFontColor = drawing.Color{
|
||||
R: 238,
|
||||
G: 238,
|
||||
B: 238,
|
||||
A: 255,
|
||||
}
|
||||
|
||||
func init() {
|
||||
echartSeriesColors := []Color{
|
||||
parseColor("#5470c6"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue