diff --git a/cmd/message_input.go b/cmd/message_input.go index 58c3198..7a378c5 100644 --- a/cmd/message_input.go +++ b/cmd/message_input.go @@ -49,7 +49,6 @@ func newMessageInput(cfg *config.Config) *messageInput { } mi.Box = ui.NewConfiguredBox(mi.Box, &cfg.Theme) - mi. SetTextStyle(tcell.StyleDefault.Background(tcell.GetColor(cfg.Theme.BackgroundColor))). SetClipboard(func(s string) { diff --git a/cmd/messages_text.go b/cmd/messages_text.go index 1a78078..ab34c45 100644 --- a/cmd/messages_text.go +++ b/cmd/messages_text.go @@ -49,8 +49,6 @@ func newMessagesText(cfg *config.Config) *messagesText { } mt.Box = ui.NewConfiguredBox(mt.Box, &cfg.Theme) - - t := cfg.Theme mt. SetDynamicColors(true). SetRegions(true). @@ -60,7 +58,7 @@ func newMessagesText(cfg *config.Config) *messagesText { SetTitle("Messages"). SetInputCapture(mt.onInputCapture) - markdown.DefaultRenderer.AddOptions(renderer.WithOption("theme", t.MessagesText)) + markdown.DefaultRenderer.AddOptions(renderer.WithOption("theme", cfg.Theme.MessagesText)) return mt }