Commit Graph

26 Commits

Author SHA1 Message Date
Christian Rocha
e723cfd15e Add WithSpringOptions to customize spring in NewModel 2021-07-26 12:41:37 -04:00
Christian Rocha
90d8eaffeb Update progress bar with public harmonica release 2021-07-26 12:41:37 -04:00
Christian Rocha
202d5a9f9d Progress's NewModel no longer returns an error for better usability
To that end, bad hex colors also default to black. This is also how we
handle bad hex notation in Lip Gloss.
2021-07-26 12:41:37 -04:00
Christian Rocha
446433d680 Use Lip Gloss to style percentage in progress bubble 2021-07-26 12:41:37 -04:00
Christian Rocha
2cd3b16343 Use Harmonica to animate progress bar 2021-07-26 12:41:37 -04:00
Christian Rocha
20ead8fb7d Progress can now animate itself 2021-07-26 12:41:37 -04:00
Christian Muehlhaeuser
da9a4049de Mark innocuous numbers as nolint 2021-03-12 01:47:40 +01:00
Christian Rocha
43d43d14ae
A external link to progress example and remove local example 2021-01-12 18:17:42 -05:00
Christian Rocha
f9c79eef64 Slightly more subtle default gradient 2020-12-01 17:03:48 -05:00
Christian Rocha
c303de1e85 Replace "ramp" with "gradient" on exposed functions 2020-12-01 17:03:48 -05:00
Christian Rocha
7e5ef42924 Add ability to style percentage readout 2020-12-01 17:03:48 -05:00
Christian Rocha
79ca4d09d1 Fix doc comments and remove magic number 2020-12-01 17:03:48 -05:00
Christian Rocha
f48e53556a Return an error if we could not initialize a new gradient ramp 2020-12-01 17:03:48 -05:00
Christian Rocha
5d6d8cb0fb Add functional argument for setting the width of the progress bar 2020-12-01 17:03:48 -05:00
Christian Rocha
47b8d9c6a8 Doc comments, optimizations, and magic number removal 2020-12-01 17:03:48 -05:00
Christian Rocha
b78277e7ec Add progress bar example 2020-12-01 17:03:48 -05:00
Christian Rocha
6a768905a6 Add initialization options for scaled ramps 2020-12-01 17:03:48 -05:00
Christian Rocha
0f06d78b92 Support for solid (non-gradient) fills too 2020-12-01 17:03:48 -05:00
Christian Rocha
1e16eca939 Set ramp in NewModel via functional argument 2020-12-01 17:03:48 -05:00
Christian Rocha
d81e5713d4 Cache termenv color profile lookup 2020-12-01 17:03:48 -05:00
Christian Rocha
b10dbcb4dd Add option to show percent 2020-12-01 17:03:48 -05:00
Christian Rocha
a2e0a2e72e Remove initial width argument; add default width 2020-12-01 17:03:48 -05:00
Christian Rocha
3dea7d036e Reduce progress component to (more or less) a pure view function
We really only need the View function in this case since the progress
value will come from the program that implements this.
2020-12-01 17:03:48 -05:00
Richard Cooper
68e87e08c5 gofmt-ed last commit 2020-12-01 17:03:48 -05:00
Richard Cooper
65a17d039e length field changed to width 2020-12-01 17:03:48 -05:00
ololosha228
38d59517fb Added progress bar 2020-12-01 17:03:48 -05:00