diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2025-01-16 00:20:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 00:20:12 -0500 |
commit | 7d2afe1ca176d0eb76f65523ed7ebcbca702d0c1 (patch) | |
tree | 148d0f8da77686ff7d713d8a233b3545b7994e2a /internal/quit/quit.go | |
parent | f438213c56fb072bbd3dc1aed0fd7e901181a7b9 (diff) |
Central UI (#26)
* migrate to urfave/cli V3
* Remove slider background
* Force the use of TrueColor everywhere
* All ui info in one location
* Fix BinaryFill Example
* Make unfocused tabs more faint
* Fix color input width
* Ctrl-c overrides color input and quits termpicker
* docs: remove redundant comment
* fix: refactor picker View()
Diffstat (limited to 'internal/quit/quit.go')
-rw-r--r-- | internal/quit/quit.go | 7 |
1 files changed, 5 insertions, 2 deletions
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) } |