test: add test for axis
This commit is contained in:
parent
706896737b
commit
8c5647f65f
10 changed files with 374 additions and 9 deletions
3
title.go
3
title.go
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue