From 8e0d77b4c72673d366999c17a857f634b3ca8cba Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 25 Nov 2024 17:15:22 +0200 Subject: Made colors package for coherent styling and migrated existing styles to it --- internal/client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/client/client.go') 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}) -- cgit v1.3.1