mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 06:11:22 +03:00
chore: Miscellaneous minor fixes (#243)
* chore: remove internal use of deprecated NewModel * chore: miscellaneous comment fixes
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user