2023-08-10 15:52:01 -06:00
|
|
|
package objects
|
|
|
|
|
|
|
|
import "git.tebibyte.media/tomo/tomo"
|
|
|
|
import "git.tebibyte.media/tomo/tomo/theme"
|
|
|
|
|
|
|
|
// Separator is a line for visually separating elements.
|
2023-08-11 23:02:26 -06:00
|
|
|
type Separator struct {
|
|
|
|
tomo.Box
|
|
|
|
}
|
2023-08-10 15:52:01 -06:00
|
|
|
|
2023-08-11 23:02:26 -06:00
|
|
|
// NewSeparator creates a new separator line.
|
|
|
|
func NewSeparator () *Separator {
|
|
|
|
this := &Separator {
|
|
|
|
Box: tomo.NewBox(),
|
|
|
|
}
|
2023-08-10 15:52:01 -06:00
|
|
|
theme.Apply(this, theme.R("objects", "Separator", ""))
|
|
|
|
return this
|
|
|
|
}
|