Commit Graph

74 Commits

Author SHA1 Message Date
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
Christian Rocha
33162550cd
Correct Style.Inherit return value 2021-03-05 10:04:58 -05:00
Christian Rocha
def6454724
Remove some redundancy, rename some functions 2021-03-04 21:07:54 -05:00
Christian Rocha
1fb4cae84b
Implement inheritance 2021-03-04 19:47:15 -05:00
Christian Rocha
46dd8fbcc3
Switch to a method-based API 2021-03-04 12:54:40 -05:00
Christian Rocha
30f46c0e58
Check hasDarkBackground on init only to prevent lockups 2021-03-03 19:00:51 -05:00
Christian Rocha
5c53233775
Initial commit. Add the nuts and bolts. 2021-03-01 18:29:00 -05:00