small style changes
This commit is contained in:
parent
7d28b3b3e0
commit
080a8d5e47
3 changed files with 9 additions and 3 deletions
|
|
@ -29,4 +29,10 @@ commands:
|
|||
- `/me [is listening to music]`: IRC `/me` alike
|
||||
- `/poll [n]`: change polling interval, if no arguments, poll manually
|
||||
|
||||
## won't support (yet)
|
||||
|
||||
- sixel (tried, it seems to be complicated to get it to work with Vaxis' pager
|
||||
widget)
|
||||
|
||||
[Nanochat]: https://git.phial.org/d6/nanochat
|
||||
[Vaxis]: https://git.sr.ht/~rockorager/vaxis
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ func (app *App) Redraw() {
|
|||
delimiterStyle := vaxis.Style{Attribute: vaxis.AttrDim}
|
||||
|
||||
if app.conn != nil {
|
||||
titleString := fmt.Sprintf("%s:%s", app.host, app.port)
|
||||
titleString := fmt.Sprintf("nanite (%s:%s)", app.host, app.port)
|
||||
app.vx.SetTitle(titleString)
|
||||
|
||||
rateString := "manual"
|
||||
|
|
@ -53,7 +53,7 @@ func (app *App) Redraw() {
|
|||
|
||||
segments := []vaxis.Segment{
|
||||
{Text: "• "},
|
||||
{Text: titleString, Style: titleStyle},
|
||||
{Text: app.host, Style: titleStyle},
|
||||
{Text: " │ ", Style: delimiterStyle},
|
||||
{Text: fmt.Sprintf("↻ %s", rateString)},
|
||||
}
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -170,7 +170,7 @@ func (app *App) AppendMessage(data string) {
|
|||
}
|
||||
|
||||
func (app *App) AppendSystemMessage(format string, args ...any) {
|
||||
st := vaxis.Style{Attribute: vaxis.AttrDim | vaxis.AttrItalic}
|
||||
st := vaxis.Style{Foreground: vaxis.ColorGray, Attribute: vaxis.AttrDim}
|
||||
app.pager.Segments = append(app.pager.Segments,
|
||||
vaxis.Segment{Text: "* ", Style: st},
|
||||
vaxis.Segment{Text: fmt.Sprintf(format, args...), Style: st},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue