From ac70dce00fd3ec8b6c47df87addb787f99633bc1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 12 Aug 2023 01:02:26 -0400 Subject: [PATCH] Fix separator --- separator.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/separator.go b/separator.go index 1dcecb5..14ba1fd 100644 --- a/separator.go +++ b/separator.go @@ -4,11 +4,15 @@ import "git.tebibyte.media/tomo/tomo" import "git.tebibyte.media/tomo/tomo/theme" // Separator is a line for visually separating elements. -type Separator tomo.Box +type Separator struct { + tomo.Box +} -// NewSeparator creates a new text label. -func NewSeparator () Separator { - this := Separator(tomo.NewBox()) +// NewSeparator creates a new separator line. +func NewSeparator () *Separator { + this := &Separator { + Box: tomo.NewBox(), + } theme.Apply(this, theme.R("objects", "Separator", "")) return this }