commit d0e2711

delthas  ·  2023-07-10 13:15:18 +0000 UTC
parent 8cc7490
Make the unread ruler quieter
1 files changed,  +3, -11
+3, -11
 1@@ -860,17 +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.ColorGray)
 5-				margin := 5
 6-				for x := x0 + nickColWidth + 9 + margin; x < x0+bs.tlInnerWidth-margin; x++ {
 7-					var r rune
 8-					if x == x0+nickColWidth+9+margin {
 9-						r = '◄'
10-					} else if x == x0+bs.tlInnerWidth-margin-1 {
11-						r = '►'
12-					} else {
13-						r = 0x2500
14-					}
15-					screen.SetContent(x, yi, r, nil, st)
16+				printIdent(screen, x0+7, yi, nickColWidth, Styled("--", st))
17+				for x := x0 + 9 + nickColWidth; x < x0+9+nickColWidth+bs.tlInnerWidth; x++ {
18+					screen.SetContent(x, yi, 0x2500, nil, st)
19 				}
20 				rulerDrawn = true
21 			}