summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-08-10 13:58:18 +0200
committerdelthas <delthas@dille.cc>2022-08-10 13:59:00 +0200
commit0621fe2d0f304726b3f4be225aec22c8469cbd20 (patch)
tree2ee837691fd0be42dde55cbc883b9f43980de4cd /app.go
parentAdd support for soju.im/bouncer-networks-notify (diff)
Color nicks in the member list the same as in the timeline
Also, change the color scheme to use more colors. Now 30 instead of 15, and with the consistent color codes offered by the extended XTerm 256 color scheme. Fixes: https://todo.sr.ht/~taiite/senpai/90
Diffstat (limited to 'app.go')
-rw-r--r--app.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app.go b/app.go
index 318fd4c..8b18238 100644
--- a/app.go
+++ b/app.go
@@ -1259,7 +1259,7 @@ func (app *App) formatMessage(s *irc.Session, ev irc.MessageEvent) (buffer strin
if isAction || isNotice {
head = "*"
} else {
- headColor = identColor(head)
+ headColor = ui.IdentColor(head)
}
content := strings.TrimSuffix(ev.Content, "\x01")
@@ -1269,14 +1269,14 @@ func (app *App) formatMessage(s *irc.Session, ev irc.MessageEvent) (buffer strin
}
var body ui.StyledStringBuilder
if isNotice {
- color := identColor(ev.User)
+ color := ui.IdentColor(ev.User)
body.SetStyle(tcell.StyleDefault.Foreground(color))
body.WriteString(ev.User)
body.SetStyle(tcell.StyleDefault)
body.WriteString(": ")
body.WriteStyledString(ui.IRCString(content))
} else if isAction {
- color := identColor(ev.User)
+ color := ui.IdentColor(ev.User)
body.SetStyle(tcell.StyleDefault.Foreground(color))
body.WriteString(ev.User)
body.SetStyle(tcell.StyleDefault)
@@ -1416,7 +1416,7 @@ func (app *App) updatePrompt() {
Foreground(tcell.ColorRed),
)
} else {
- prompt = identString(s.Nick())
+ prompt = ui.IdentString(s.Nick())
}
app.win.SetPrompt(prompt)
}