mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-03-14 13:03:44 +03:00
Remove deadcode + small comment on Lip Gloss
This commit is contained in:
parent
ddd48d9ab7
commit
0d5d7e5acd
@ -7,7 +7,6 @@ import (
|
|||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
"github.com/muesli/reflow/ansi"
|
"github.com/muesli/reflow/ansi"
|
||||||
"github.com/muesli/termenv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Spinner is a set of frames used in animating the spinner.
|
// Spinner is a set of frames used in animating the spinner.
|
||||||
@ -16,8 +15,8 @@ type Spinner struct {
|
|||||||
FPS time.Duration
|
FPS time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some spinners to choose from. You could also make your own.
|
||||||
var (
|
var (
|
||||||
// Some spinners to choose from. You could also make your own.
|
|
||||||
Line = Spinner{
|
Line = Spinner{
|
||||||
Frames: []string{"|", "/", "-", "\\"},
|
Frames: []string{"|", "/", "-", "\\"},
|
||||||
FPS: time.Second / 10, //nolint:gomnd
|
FPS: time.Second / 10, //nolint:gomnd
|
||||||
@ -54,8 +53,6 @@ var (
|
|||||||
Frames: []string{"🙈", "🙉", "🙊"},
|
Frames: []string{"🙈", "🙉", "🙊"},
|
||||||
FPS: time.Second / 3, //nolint:gomnd
|
FPS: time.Second / 3, //nolint:gomnd
|
||||||
}
|
}
|
||||||
|
|
||||||
color = termenv.ColorProfile().Color
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Model contains the state for the spinner. Use NewModel to create new models
|
// Model contains the state for the spinner. Use NewModel to create new models
|
||||||
|
@ -66,7 +66,10 @@ type Model struct {
|
|||||||
EchoMode EchoMode
|
EchoMode EchoMode
|
||||||
EchoCharacter rune
|
EchoCharacter rune
|
||||||
|
|
||||||
// Styles.
|
// Styles. These will be applied as inline styles.
|
||||||
|
//
|
||||||
|
// For an introduction to styling with Lip Gloss see:
|
||||||
|
// https://github.com/charmbracelet/lipgloss
|
||||||
PromptStyle lipgloss.Style
|
PromptStyle lipgloss.Style
|
||||||
TextStyle lipgloss.Style
|
TextStyle lipgloss.Style
|
||||||
BackgroundStyle lipgloss.Style
|
BackgroundStyle lipgloss.Style
|
||||||
|
Loading…
Reference in New Issue
Block a user