diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-11-06 14:38:31 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-11-06 14:38:31 +0900 |
commit | 01ae621f116bd4a3ef951a3816e11615c61b8c36 (patch) | |
tree | 268fa0388c9c4a57118abec389d5b68a973ff915 /src/tui/tcell.go | |
parent | f984aa0d2c9e1820783110affb37525677426935 (diff) |
Add --border=[bold|double] and --preview-window=border-[bold|double]
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r-- | src/tui/tcell.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go index 3614477a..a82bf944 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -705,31 +705,31 @@ func (w *TcellWindow) drawBorder() { } switch shape { - case BorderRounded, BorderSharp, BorderHorizontal, BorderTop: + case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderHorizontal, BorderTop: for x := left; x < right; x++ { _screen.SetContent(x, top, w.borderStyle.horizontal, nil, style) } } switch shape { - case BorderRounded, BorderSharp, BorderHorizontal, BorderBottom: + case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderHorizontal, BorderBottom: for x := left; x < right; x++ { _screen.SetContent(x, bot-1, w.borderStyle.horizontal, nil, style) } } switch shape { - case BorderRounded, BorderSharp, BorderVertical, BorderLeft: + case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderLeft: for y := top; y < bot; y++ { _screen.SetContent(left, y, w.borderStyle.vertical, nil, style) } } switch shape { - case BorderRounded, BorderSharp, BorderVertical, BorderRight: + case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderRight: for y := top; y < bot; y++ { _screen.SetContent(right-1, y, w.borderStyle.vertical, nil, style) } } switch shape { - case BorderRounded, BorderSharp: + case BorderRounded, BorderSharp, BorderBold, BorderDouble: _screen.SetContent(left, top, w.borderStyle.topLeft, nil, style) _screen.SetContent(right-1, top, w.borderStyle.topRight, nil, style) _screen.SetContent(left, bot-1, w.borderStyle.bottomLeft, nil, style) |