small style changes

This commit is contained in:
Lobo 2025-10-12 20:40:01 -03:00
parent 7d28b3b3e0
commit 080a8d5e47
3 changed files with 9 additions and 3 deletions

View file

@ -29,4 +29,10 @@ commands:
- `/me [is listening to music]`: IRC `/me` alike - `/me [is listening to music]`: IRC `/me` alike
- `/poll [n]`: change polling interval, if no arguments, poll manually - `/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 [Nanochat]: https://git.phial.org/d6/nanochat
[Vaxis]: https://git.sr.ht/~rockorager/vaxis

View file

@ -43,7 +43,7 @@ func (app *App) Redraw() {
delimiterStyle := vaxis.Style{Attribute: vaxis.AttrDim} delimiterStyle := vaxis.Style{Attribute: vaxis.AttrDim}
if app.conn != nil { 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) app.vx.SetTitle(titleString)
rateString := "manual" rateString := "manual"
@ -53,7 +53,7 @@ func (app *App) Redraw() {
segments := []vaxis.Segment{ segments := []vaxis.Segment{
{Text: "• "}, {Text: "• "},
{Text: titleString, Style: titleStyle}, {Text: app.host, Style: titleStyle},
{Text: " │ ", Style: delimiterStyle}, {Text: " │ ", Style: delimiterStyle},
{Text: fmt.Sprintf("↻ %s", rateString)}, {Text: fmt.Sprintf("↻ %s", rateString)},
} }

View file

@ -170,7 +170,7 @@ func (app *App) AppendMessage(data string) {
} }
func (app *App) AppendSystemMessage(format string, args ...any) { 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, app.pager.Segments = append(app.pager.Segments,
vaxis.Segment{Text: "* ", Style: st}, vaxis.Segment{Text: "* ", Style: st},
vaxis.Segment{Text: fmt.Sprintf(format, args...), Style: st}, vaxis.Segment{Text: fmt.Sprintf(format, args...), Style: st},