diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-25 17:15:22 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-25 17:15:22 +0200 |
| commit | 8e0d77b4c72673d366999c17a857f634b3ca8cba (patch) | |
| tree | b7ef280fad1b8b11277bf7c66f227a6c0198808f /internal/client/client.go | |
| parent | 66e39ff2f64153efed919610097efcb9cd42b10f (diff) | |
Made colors package for coherent styling and migrated existing styles to
it
Diffstat (limited to 'internal/client/client.go')
| -rw-r--r-- | internal/client/client.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/client/client.go b/internal/client/client.go index ec760dd..c5fc8a9 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -13,6 +13,7 @@ import ( "github.com/kyren223/eko/internal/client/config" "github.com/kyren223/eko/internal/client/ui" "github.com/kyren223/eko/internal/client/ui/auth" + "github.com/kyren223/eko/internal/client/ui/colors" "github.com/kyren223/eko/pkg/assert" ) @@ -46,7 +47,7 @@ func Run() { // I am not aware of a way to query the current background color (to revert this) // Ideally bubbletea will handle the setting/reventing, for now it's fine // It only changes the current pane so new terminal panes/windows are not affected. - termenv.DefaultOutput().SetBackgroundColor(termenv.RGBColor(ui.BackgroundColor)) + termenv.DefaultOutput().SetBackgroundColor(termenv.RGBColor(colors.ToHex(colors.Background))) program := tea.NewProgram(initialModel(dump), tea.WithAltScreen()) assert.AddFlush(BubbleTeaCloser{program}) |
