From 0d5d7e5acdbf7b3fdef433689e7f8fd0f63e6080 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 12 Apr 2021 19:33:16 -0400 Subject: [PATCH] Remove deadcode + small comment on Lip Gloss --- spinner/spinner.go | 5 +---- textinput/textinput.go | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spinner/spinner.go b/spinner/spinner.go index 865a2051..0311f99f 100644 --- a/spinner/spinner.go +++ b/spinner/spinner.go @@ -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. @@ -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 @@ -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 diff --git a/textinput/textinput.go b/textinput/textinput.go index b283c534..7a13bcc2 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -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