mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
feat(progress): make full/empty fill characters configurable
This commit is contained in:
committed by
Christian Rocha
parent
79cc9621d5
commit
7fe39190c8
@@ -79,6 +79,14 @@ func WithSolidFill(color string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithCustomFillCharacters sets the characters used to construct the full and empty components of the progress bar.
|
||||
func WithCustomFillCharacters(full rune, empty rune) Option {
|
||||
return func(m *Model) {
|
||||
m.Full = full
|
||||
m.Empty = empty
|
||||
}
|
||||
}
|
||||
|
||||
// WithoutPercentage hides the numeric percentage.
|
||||
func WithoutPercentage() Option {
|
||||
return func(m *Model) {
|
||||
|
||||
Reference in New Issue
Block a user