Commit Graph

15 Commits

Author SHA1 Message Date
Christian Rocha
514fa059f3 Fix and generally improve various doc comments 2022-02-14 11:43:23 -05:00
Christian Rocha
7f051d0e92 Add HiddenBorder(), which renders a border comprised of spaces
HiddenBorder() can be useful if you want to remove a border but maintain
layout positioning. This said, you can still apply a background color to
a hidden border.
2021-08-19 15:36:14 -04:00
Christian Rocha
a9b894aa07 Add Style.GetFrameSize(), improve border method naming 2021-08-19 15:26:30 -04:00
Christian Rocha
3b4907dffe Simplify how border styles are queried 2021-08-19 15:26:30 -04:00
Christian Rocha
adee683da4 Add methods to query border widths 2021-08-19 15:26:30 -04:00
Christian Rocha
d9fae9f03a For now, limit corners on border to a single rune 2021-04-29 09:59:44 -04:00
Christian Rocha
6064d52be1 Support for multi-rune borders 2021-04-29 09:59:44 -04:00
Christian Rocha
bb42143109 Remove 'Color' suffix from border FG/BG API methods
This makes the border API better match the rest of the API. Also, the
'Color' part is implicit.
2021-04-07 12:23:36 -04:00
Christian Rocha
b3875326a3 Don't check color profile and terminal darkness until absolutely necessary 2021-04-05 10:43:01 -04:00
Christian Rocha
9b77d4607b
Rename ColorType to TerminalColor 2021-03-30 22:19:38 -04:00
Christian Rocha
5ec7baa707
Fix width of borders when they're horizontal only 2021-03-30 10:18:38 -04:00
Christian Rocha
82393c2d95
Fix bug where top border was being rendered on the bottom 2021-03-26 18:15:16 -04:00
Christian Rocha
d7bd9ebc4f
Borders are back 2021-03-25 20:43:40 -04:00
Christian Rocha
6bfa4297a0
Style.Inline and Style.MaxWidth no longer mutate the style 2021-03-17 14:27:09 -04:00
Christian Rocha
303947c10c
Implement the Stringer interface for the Style type 2021-03-17 14:27:09 -04:00