test: add test for axis

This commit is contained in:
vicanso 2022-06-23 20:32:25 +08:00
parent 706896737b
commit 8c5647f65f
10 changed files with 374 additions and 9 deletions

View file

@ -97,6 +97,9 @@ func (t *titlePainter) Render() (Box, error) {
p := t.p
theme := opt.Theme
if theme == nil {
theme = p.theme
}
if opt.Text == "" && opt.Subtext == "" {
return BoxZero, nil
}