chore: Miscellaneous minor fixes (#243)

* chore: remove internal use of deprecated NewModel

* chore: miscellaneous comment fixes
This commit is contained in:
Tom Payne
2022-09-15 16:51:42 +02:00
committed by GitHub
parent a4ed54327f
commit 72d87e4513
4 changed files with 14 additions and 17 deletions

View File

@@ -37,13 +37,12 @@ const (
defaultDamping = 1.0
)
// Option is used to set options in NewModel. For example:
//
// progress := NewModel(
// WithRamp("#ff0000", "#0000ff"),
// WithoutPercentage(),
// )
// Option is used to set options in New. For example:
//
// progress := New(
// WithRamp("#ff0000", "#0000ff"),
// WithoutPercentage(),
// )
type Option func(*Model)
// WithDefaultGradient sets a gradient fill with default colors.