From 7da44507bb619f18024b2d5ad68c39250a9737e5 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Thu, 17 Jul 2025 17:09:02 -0400 Subject: [PATCH] fix: remove theme.messages_list.author_style and bold author markup by default --- cmd/messages_list.go | 8 +++----- internal/config/config.toml | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/messages_list.go b/cmd/messages_list.go index cc8cc5d..52df007 100644 --- a/cmd/messages_list.go +++ b/cmd/messages_list.go @@ -146,8 +146,8 @@ func (ml *messagesList) drawTimestamps(ts discord.Timestamp) { } func (ml *messagesList) drawAuthor(msg discord.Message) { - style := ml.cfg.Theme.MessagesList.AuthorStyle name := msg.Author.DisplayOrUsername() + foreground := tcell.ColorDefault if msg.GuildID.IsValid() { member, err := discordState.Cabinet.Member(msg.GuildID, msg.Author.ID) if err != nil { @@ -164,13 +164,11 @@ func (ml *messagesList) drawAuthor(msg discord.Message) { return r }) if ok { - c := tcell.GetColor(color.String()) - style = config.NewStyleWrapper(tcell.StyleDefault.Foreground(c)) + foreground = tcell.GetColor(color.String()) } } - fg, bg, _ := style.Decompose() - _, _ = fmt.Fprintf(ml, "[%s:%s]%s[-] ", fg.String(), bg.String(), name) + fmt.Fprintf(ml, "[%s::b]%s[-::B] ", foreground, name) } func (ml *messagesList) drawContent(msg discord.Message) { diff --git a/internal/config/config.toml b/internal/config/config.toml index fcc117b..0fb1358 100644 --- a/internal/config/config.toml +++ b/internal/config/config.toml @@ -128,7 +128,6 @@ graphics_color = "default" reply_indicator = ">" forwarded_indicator = "<" -author_style = { foreground = "aqua" } mention_style = { foreground = "blue" } emoji_style = { foreground = "green" } url_style = { foreground = "blue" }