Skip to content

Commit

Permalink
Remove deadcode + small comment on Lip Gloss
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Apr 13, 2021
1 parent ddd48d9 commit 0d5d7e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/muesli/reflow/ansi"
"github.com/muesli/termenv"
)

// Spinner is a set of frames used in animating the spinner.
Expand All @@ -16,8 +15,8 @@ type Spinner struct {
FPS time.Duration
}

// Some spinners to choose from. You could also make your own.
var (
// Some spinners to choose from. You could also make your own.
Line = Spinner{
Frames: []string{"|", "/", "-", "\\"},
FPS: time.Second / 10, //nolint:gomnd
Expand Down Expand Up @@ -54,8 +53,6 @@ var (
Frames: []string{"🙈", "🙉", "🙊"},
FPS: time.Second / 3, //nolint:gomnd
}

color = termenv.ColorProfile().Color
)

// Model contains the state for the spinner. Use NewModel to create new models
Expand Down
5 changes: 4 additions & 1 deletion textinput/textinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ type Model struct {
EchoMode EchoMode
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
TextStyle lipgloss.Style
BackgroundStyle lipgloss.Style
Expand Down

0 comments on commit 0d5d7e5

Please sign in to comment.