summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-05-26 18:52:30 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-05-26 18:52:30 +0200
commiteafb0ddd2a7d9792a4eca3244e59216010b14bf5 (patch)
tree724a97e7fa789be0775fb148731fcecad2cb0689 /commands.go
parentPick nick colors in terminal color scheme (diff)
Also make dashes gray for command responses
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/commands.go b/commands.go
index a704acf..b9ac392 100644
--- a/commands.go
+++ b/commands.go
@@ -275,9 +275,10 @@ func commandDoNames(app *App, buffer string, args []string) (err error) {
body := sb.StyledString()
// TODO remove last space
app.win.AddLine(buffer, false, ui.Line{
- At: time.Now(),
- Head: "--",
- Body: body,
+ At: time.Now(),
+ Head: "--",
+ HeadColor: tcell.ColorGray,
+ Body: body,
})
return
}
@@ -366,9 +367,10 @@ func commandDoTopic(app *App, buffer string, args []string) (err error) {
body = fmt.Sprintf("Topic (by %s, %s): %s", who, at.Local().Format("Mon Jan 2 15:04:05"), topic)
}
app.win.AddLine(buffer, false, ui.Line{
- At: time.Now(),
- Head: "--",
- Body: ui.Styled(body, tcell.StyleDefault.Foreground(tcell.ColorGray)),
+ At: time.Now(),
+ Head: "--",
+ HeadColor: tcell.ColorGray,
+ Body: ui.Styled(body, tcell.StyleDefault.Foreground(tcell.ColorGray)),
})
} else {
app.s.ChangeTopic(buffer, args[0])