commit 30a1dc7

delthas  ·  2023-07-07 13:42:16 +0000 UTC
parent 2eff5ce
Make the unread message ruler quieter
1 files changed,  +3, -4
+3, -4
 1@@ -859,10 +859,9 @@ func (bs *BufferList) DrawTimeline(screen tcell.Screen, x0, y0, nickColWidth int
 2 			isRead := !line.At.After(b.unreadRuler)
 3 			if isRead && yi > y0 {
 4 				yi--
 5-				st := tcell.StyleDefault.Foreground(tcell.ColorRed)
 6-				margin := 5
 7-				for x := x0 + nickColWidth + 9 + margin; x < x0+bs.tlInnerWidth-margin; x++ {
 8-					screen.SetContent(x, yi, '-', nil, st)
 9+				st := tcell.StyleDefault.Foreground(tcell.ColorGray)
10+				for x := x0; x < x0+bs.tlInnerWidth+nickColWidth+9; x++ {
11+					screen.SetContent(x, yi, 0x2500, nil, st)
12 				}
13 				rulerDrawn = true
14 			}