From 586b68315b4e98ea6fda6280862f319c7ba48476 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sun, 23 Nov 2025 14:15:07 -0500 Subject: [PATCH] refactor: relocate tview theme initialization to newApplication and remove unused import --- cmd/application.go | 1 + cmd/root.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/application.go b/cmd/application.go index 221ab61..3571015 100644 --- a/cmd/application.go +++ b/cmd/application.go @@ -24,6 +24,7 @@ type application struct { } func newApplication(cfg *config.Config) *application { + tview.Styles = tview.Theme{} app := &application{ Application: tview.NewApplication(), cfg: cfg, diff --git a/cmd/root.go b/cmd/root.go index 0ce96e9..41e7128 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -10,7 +10,6 @@ import ( "github.com/ayn2op/discordo/internal/consts" "github.com/ayn2op/discordo/internal/keyring" "github.com/ayn2op/discordo/internal/logger" - "github.com/ayn2op/tview" "github.com/diamondburned/arikawa/v3/utils/ws" "github.com/diamondburned/ningen/v3" "github.com/spf13/cobra" @@ -63,7 +62,6 @@ var ( } } - tview.Styles = tview.Theme{} app = newApplication(cfg) return app.run(token) },