commit cad0f9c
delthas
·
2023-07-05 17:30:13 +0000 UTC
parent 0b5ceec
Make the unread message marker softer
1 files changed,
+3,
-2
+3,
-2
1@@ -860,8 +860,9 @@ func (bs *BufferList) DrawTimeline(screen tcell.Screen, x0, y0, nickColWidth int
2 if isRead && yi > y0 {
3 yi--
4 st := tcell.StyleDefault.Foreground(tcell.ColorRed)
5- for x := x0; x < x0+bs.tlInnerWidth+nickColWidth+9; x++ {
6- screen.SetContent(x, yi, 0x254C, nil, st)
7+ margin := 5
8+ for x := x0 + nickColWidth + 9 + margin; x < x0+bs.tlInnerWidth-margin; x++ {
9+ screen.SetContent(x, yi, '-', nil, st)
10 }
11 rulerDrawn = true
12 }