Maas Lalani
|
9852bb3017
|
feat: VerticalAlign
Add VerticalAlign, UnsetVerticalAlign, etc...
|
2022-09-06 14:11:09 -04:00 |
|
Ismael Padilla
|
e8297c491f
|
Use ReplaceAll instead of Replace with n=-1
|
2022-07-14 23:03:04 +02:00 |
|
Brandon Fulljames
|
6b5dc18b3b
|
Clarify Inherit comment
|
2022-03-04 12:27:20 -05:00 |
|
Dusan Gligoric
|
74e01f672d
|
remove repeating code
|
2022-02-25 14:34:10 -05:00 |
|
Dusan Gligoric
|
75c95df92d
|
dont overwrite background when inheriting
|
2022-02-25 14:34:10 -05:00 |
|
Christian Rocha
|
514fa059f3
|
Fix and generally improve various doc comments
|
2022-02-14 11:43:23 -05:00 |
|
Dusan Gligoric
|
0a77f6374d
|
Add Value method (#66)
|
2022-02-14 15:57:02 +01:00 |
|
Christian Rocha
|
4f0d448967
|
Force-wrap strings that run wider than the width
|
2021-09-03 10:20:33 -04:00 |
|
Christian Rocha
|
2b27307e58
|
Short circuit rendering if no style rules are set
|
2021-04-12 18:34:48 -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
|
874349bbec
|
Don't enable ANSI in cmd.exe until absolutely necessary
|
2021-04-06 11:39:01 -04:00 |
|
Kiyon
|
cb8ec749fe
|
Use the same receiver name
|
2021-04-06 08:25:18 +02:00 |
|
Kiyon
|
3cb36e5bd1
|
Cleanup: fix a typo and remove a redundant line
|
2021-04-06 08:24:41 +02:00 |
|
Christian Rocha
|
3b2c9574ca
|
Remove the gaps and add the periods that the linter wants
|
2021-04-02 10:22:28 -04:00 |
|
Christian Rocha
|
31b52762a4
|
Style.Inline() now skips over padding, margins and borders entirely
|
2021-03-31 09:55:21 -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
|
619b74ed87
|
Apply border before applying margins
|
2021-03-30 13:06:15 -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
|
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
|
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
|
e2156d6854
|
Copy() also copies the underlying string value
|
2021-03-24 12:58:56 -04:00 |
|
Christian Rocha
|
552799ac29
|
Improve NoColor primative
|
2021-03-18 14:34:39 -04:00 |
|
Christian Rocha
|
dc9898905f
|
GoDoc improvements
|
2021-03-18 13:29:48 -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
|
2891ec0d5b
|
First pass at a README and user guide
|
2021-03-18 11:54:27 -04:00 |
|
Christian Rocha
|
0732c59a2e
|
Improve some GoDocs
|
2021-03-17 20:29:18 -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 |
|
Christian Rocha
|
cbe446f299
|
GoDocs and GoDoc spelling corrections
|
2021-03-10 10:21:21 -05:00 |
|
Christian Rocha
|
228d50837b
|
Switch to a map-based implementation to make things less complicated
|
2021-03-08 09:00:42 -05:00 |
|
Christian Rocha
|
114db95319
|
Add a method for copying styles
|
2021-03-05 19:25:58 -05:00 |
|
Christian Rocha
|
5f87efafcb
|
Copy values when inheriting
|
2021-03-05 19:02:52 -05:00 |
|
Christian Rocha
|
a6cd289e04
|
Don't inherit margins and columns
|
2021-03-05 18:32:28 -05:00 |
|
Christian Rocha
|
dc10fc06a3
|
Remove a silly function
|
2021-03-05 17:58:50 -05:00 |
|
Christian Rocha
|
53b7cb3cdb
|
Rules for underlines/strikethroughs relating to spaces between words
|
2021-03-05 16:34:46 -05:00 |
|
Christian Rocha
|
60ab44f0f6
|
Whitespace can be stricken and underlined independently
|
2021-03-05 12:47:41 -05:00 |
|
Christian Rocha
|
4665de69d0
|
Rework renderer
|
2021-03-05 12:43:51 -05:00 |
|
Christian Rocha
|
62aaaf35ef
|
Move style setters into a separate file
|
2021-03-05 10:07:00 -05:00 |
|