fix: remove theme.messages_list.author_style and bold author markup by default
This commit is contained in:
parent
4a6dd663e2
commit
7da44507bb
2 changed files with 3 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue