Fix separator
This commit is contained in:
parent
c0bfa76ba6
commit
ac70dce00f
12
separator.go
12
separator.go
@ -4,11 +4,15 @@ import "git.tebibyte.media/tomo/tomo"
|
|||||||
import "git.tebibyte.media/tomo/tomo/theme"
|
import "git.tebibyte.media/tomo/tomo/theme"
|
||||||
|
|
||||||
// Separator is a line for visually separating elements.
|
// Separator is a line for visually separating elements.
|
||||||
type Separator tomo.Box
|
type Separator struct {
|
||||||
|
tomo.Box
|
||||||
|
}
|
||||||
|
|
||||||
// NewSeparator creates a new text label.
|
// NewSeparator creates a new separator line.
|
||||||
func NewSeparator () Separator {
|
func NewSeparator () *Separator {
|
||||||
this := Separator(tomo.NewBox())
|
this := &Separator {
|
||||||
|
Box: tomo.NewBox(),
|
||||||
|
}
|
||||||
theme.Apply(this, theme.R("objects", "Separator", ""))
|
theme.Apply(this, theme.R("objects", "Separator", ""))
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user