feat: support title render function

This commit is contained in:
vicanso 2022-01-29 15:02:01 +08:00
parent ccdaf70dcb
commit ffbda8f214
12 changed files with 455 additions and 141 deletions

View file

@ -120,3 +120,20 @@ func (t *Theme) GetBackgroundColor() drawing.Color {
}
return drawing.ColorWhite
}
func (t *Theme) GetTitleColor() drawing.Color {
if t.IsDark() {
return drawing.Color{
R: 238,
G: 241,
B: 250,
A: 255,
}
}
return drawing.Color{
R: 70,
G: 70,
B: 70,
A: 255,
}
}