Commit Graph

276 Commits

Author SHA1 Message Date
Christian Rocha
9b77d4607b
Rename ColorType to TerminalColor 2021-03-30 22:19:38 -04:00
Christian Rocha
8a4bf146ce
Finish up example 2021-03-30 22:15:28 -04:00
Christian Rocha
34d6f0c73b
Make map before inheriting 2021-03-30 22:15:28 -04:00
Christian Rocha
cb8b96556e
Margins inherit background color 2021-03-30 22:15:28 -04:00
Christian Rocha
9b77861080
Style.Inherit should return a style 2021-03-30 22:15:28 -04:00
Christian Rocha
f74e4b84cb
Correct height measurement in Style.Render() 2021-03-30 22:15:28 -04:00
Christian Rocha
c9a4a313f8
Rough example 2021-03-30 22:15:23 -04:00
Christian Rocha
619b74ed87
Apply border before applying margins 2021-03-30 13:06:15 -04:00
Christian Rocha
0cd4e2cc7f
Fix naming on padding setters 2021-03-30 13:05:39 -04:00
Christian Rocha
1692c92c70
Add forground options to whitespace generator 2021-03-30 10:45:47 -04:00
Christian Rocha
f24a617e3a
Pad short lines when horizontally positioning 2021-03-30 10:45:29 -04:00
Christian Rocha
5ec7baa707
Fix width of borders when they're horizontal only 2021-03-30 10:18:38 -04:00
Christian Rocha
7d217d8505
Add utils for measuring paragraphs 2021-03-29 17:45:42 -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
73f6cab6ac
Option to set whitespace color in place functions + whitespace renderer 2021-03-26 15:57:47 -04:00
Christian Rocha
25d9c64aa9
Remove an unused const 2021-03-26 14:18:50 -04:00
Christian Rocha
5b43b10fd6
Add utility for horizontally and vertically placing blocks in whitespace 2021-03-26 13:35:48 -04:00
Christian Rocha
a47a89f4ae
Remove setting for underlining and striking whitespace 2021-03-26 10:36:23 -04:00
Christian Rocha
a3ab90a71c
Remove setting for not drawing trailing spaces 2021-03-26 09:30:54 -04:00
Christian Rocha
7739cea82a
Apply border after adding padding 2021-03-25 21:56:41 -04:00
Christian Rocha
d7bd9ebc4f
Borders are back 2021-03-25 20:43:40 -04:00
Christian Rocha
8d5c0823f8
Don't add a new line after the last line when joining horizontally 2021-03-25 19:05:54 -04:00
Christian Rocha
e260c72ca6
Adjust README copy about color conversion 2021-03-25 09:19:04 -04:00
Christian Rocha
ae5db7b9f8
Fix rendering when horizontally joining a block with a height of 2 2021-03-24 21:31:57 -04:00
Christian Rocha
56a9250443
Fix panics when attemping to join one single string 2021-03-24 21:20:38 -04:00
Christian Rocha
5a330d1ea7
Keep our integers above zero (let's not move to uints just yet) 2021-03-24 17:29:01 -04:00
Christian Rocha
642c2c5310
Set width and alignment on single lines too 2021-03-24 16:42:34 -04:00
Christian Rocha
942108239f
Width enforces a minimum width 2021-03-24 16:34:03 -04:00
Christian Rocha
c9fa4cd62e
Make margin setters match CSS naming 2021-03-24 16:31:35 -04:00
Christian Rocha
7b5208a1cd
Add Height and MaxHeight properties 2021-03-24 14:42:45 -04:00
Christian Rocha
acd9df30a7
Change margin and padding APIs to closer match CSS 2021-03-24 13:55:43 -04:00
Christian Rocha
f56620c06b
Reverse also reverses padding 2021-03-24 13:50:07 -04:00
Christian Rocha
143b345c10
Add unsetter for the underlying string value 2021-03-24 12:59:09 -04:00
Christian Rocha
e2156d6854
Copy() also copies the underlying string value 2021-03-24 12:58:56 -04:00
Christian Rocha
670f0d0d2d
Correct and extend join examples in README 2021-03-19 11:33:52 -04:00
Christian Muehlhaeuser
24fb120f9e Bump termenv to v0.8.0 2021-03-18 23:58:06 +01:00
Christian Rocha
7481f05486
Corrections to Join GoDocs 2021-03-18 16:59:48 -04:00
Christian Rocha
ca0afc03da
Add join example and note about Glamour to README 2021-03-18 15:03:11 -04:00
Christian Rocha
a1f7fa9165
Expose the color profile Termenv detected 2021-03-18 14:52:44 -04:00
Christian Rocha
552799ac29
Improve NoColor primative 2021-03-18 14:34:39 -04:00
Christian Rocha
1498fd3b6b Simplify joining API 2021-03-18 14:14:35 -04:00
Christian Rocha
52b15b9469
Further README corrections 2021-03-18 13:59:27 -04:00
Christian Rocha
dc9898905f
GoDoc improvements 2021-03-18 13:29:48 -04:00
Christian Rocha
52c837e21f
More README corrections and improvements 2021-03-18 13:29:03 -04:00
Christian Rocha
d133354735
You can just iterate over a string to get the runes 2021-03-18 12:40:33 -04:00
Christian Rocha
da5b337b1f
Drop an unused function 2021-03-18 12:40:33 -04:00
Christian Rocha
daf723aaa8
Add badges 2021-03-18 12:40:33 -04:00
Christian Muehlhaeuser
08a637779a Add GitHub workflows 2021-03-18 17:31:07 +01:00
Christian Rocha
2891ec0d5b
First pass at a README and user guide 2021-03-18 11:54:27 -04:00
Christian Rocha
30078aa5a9
Rework horizontal and vertical joins 2021-03-17 22:13:43 -04:00