commit e51a5c7
Simon Ser
·
2021-12-10 13:37:08 +0000 UTC
parent b7bfc0e
ui: use reverse colors for current buffer instead of underline I personally find this esthetically more pleasing.
1 files changed,
+3,
-5
+3,
-5
1@@ -469,10 +469,8 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
2 st := tcell.StyleDefault
3 if b.unread {
4 st = st.Bold(true)
5- } else if bi == bs.current {
6- st = st.Underline(true)
7 }
8- if bi == bs.clicked {
9+ if bi == bs.current || bi == bs.clicked {
10 st = st.Reverse(true)
11 }
12 if bs.showBufferNumbers {
13@@ -486,7 +484,7 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
14 if b.title == "" {
15 title = b.netName
16 } else {
17- if bi == bs.clicked {
18+ if bi == bs.current || bi == bs.clicked {
19 screen.SetContent(x, y, ' ', nil, tcell.StyleDefault.Reverse(true))
20 screen.SetContent(x+1, y, ' ', nil, tcell.StyleDefault.Reverse(true))
21 }
22@@ -496,7 +494,7 @@ func (bs *BufferList) DrawVerticalBufferList(screen tcell.Screen, x0, y0, width,
23 title = truncate(title, width-(x-x0), "\u2026")
24 printString(screen, &x, y, Styled(title, st))
25
26- if bi == bs.clicked {
27+ if bi == bs.current || bi == bs.clicked {
28 st := tcell.StyleDefault.Reverse(true)
29 for ; x < x0+width; x++ {
30 screen.SetContent(x, y, ' ', nil, st)