From 3b8fa0766a0050c0dd026be5d6a1ce2827956530 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 27 Dec 2024 17:54:43 -0500 Subject: All ui info in one location --- internal/quit/quit.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/quit/quit.go') diff --git a/internal/quit/quit.go b/internal/quit/quit.go index ac11abc..98c40a7 100644 --- a/internal/quit/quit.go +++ b/internal/quit/quit.go @@ -1,6 +1,9 @@ package quit -import tea "github.com/charmbracelet/bubbletea" +import ( + "github.com/ChausseBenjamin/termpicker/internal/ui" + tea "github.com/charmbracelet/bubbletea" +) const byeMsg = "Goodbye!\n" @@ -10,4 +13,4 @@ func (m Model) Init() tea.Cmd { return nil } func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) { return m, nil } -func (m Model) View() string { return byeMsg } +func (m Model) View() string { return ui.Style().Quit.Render(byeMsg) } -- cgit v1.2.3