summaryrefslogtreecommitdiff
path: root/internal/client/ui/ui.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-09 21:36:11 +0200
committerKyren223 <Kyren223@proton.me>2024-11-09 21:36:11 +0200
commit1b2c19149631f0397d1532644e2a2ce3d6a44e11 (patch)
tree03e362bdcbb024c6ee08b2c86fbc29159e46980b /internal/client/ui/ui.go
parent8d97e7000c6579180d37c977edf5d071e4ff1219 (diff)
feat: add WIP loading screen, messed around with custom spinners
Diffstat (limited to 'internal/client/ui/ui.go')
-rw-r--r--internal/client/ui/ui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/client/ui/ui.go b/internal/client/ui/ui.go
index 355fbfb..a208576 100644
--- a/internal/client/ui/ui.go
+++ b/internal/client/ui/ui.go
@@ -15,10 +15,19 @@ import (
"github.com/kyren223/eko/pkg/assert"
)
+var Width int
+var Height int
+
type ModelTransition struct {
Model tea.Model
}
+func Transition(model tea.Model) tea.Cmd {
+ return func() tea.Msg {
+ return ModelTransition{Model: model}
+ }
+}
+
func AddBorderHeader(header string, headerOffset int, style lipgloss.Style, render string) string {
b := style.GetBorderStyle()
body := style.UnsetBorderTop().Render(render)