commit a9d5336
Hubert Hirtz
·
2021-03-04 10:18:13 +0000 UTC
parent d9c0c27
Do not use dim styles on the buffer list Reverse + Dim is not rendered the same way across terminals. For example, - alacritty shows black text on gray background - kitty shows gray text on white background
1 files changed,
+3,
-3
+3,
-3
1@@ -360,7 +360,7 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
2 for x := x0; x < x0+width; x++ {
3 screen.SetContent(x, y, ' ', nil, st)
4 }
5- screen.SetContent(x0+width, y, 0x2502, nil, st.Dim(true))
6+ screen.SetContent(x0+width, y, 0x2502, nil, st)
7 }
8
9 for i, b := range bs.list {
10@@ -373,7 +373,7 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
11 st = st.Underline(true)
12 }
13 if i == bs.clicked {
14- st = st.Reverse(true).Dim(true)
15+ st = st.Reverse(true)
16 }
17 title := truncate(b.title, width, "\u2026")
18 printString(screen, &x, y, st, title)
19@@ -386,7 +386,7 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
20 x++
21 }
22 if i == bs.clicked {
23- st = tcell.StyleDefault.Reverse(true).Dim(true)
24+ st = tcell.StyleDefault.Reverse(true)
25 for ; x < x0+width; x++ {
26 screen.SetContent(x, y, ' ', nil, st)
27 }