Documentation
¶
Index ¶
- func Accent() lipgloss.Style
- func Dim() lipgloss.Style
- func DirArrow(download bool) string
- func DownloadBorderColor(intensity float64) lipgloss.Color
- func DownloadColor(intensity float64) lipgloss.Style
- func GetAccentColor() string
- func GetBorderColor() string
- func GetTextBrightColor() string
- func GetTextDimColor() string
- func GetTextMutedColor() string
- func GetTextSoftColor() string
- func Label() lipgloss.Style
- func LogoColored(width int) []string
- func LogoDotColor(pulse float64) lipgloss.Style
- func LogoSubtitle(width int) string
- func Muted() lipgloss.Style
- func PeakColor(pulse float64) lipgloss.Style
- func SetTheme(name string)
- func Soft() lipgloss.Style
- func SpeedRatio(current, rollingMax float64) float64
- func TextDim() lipgloss.Style
- func Title() lipgloss.Style
- func UploadBorderColor(intensity float64) lipgloss.Color
- func UploadColor(intensity float64) lipgloss.Style
- func ValuePrimary(intensity float64, download bool) lipgloss.Style
- type Theme
- type ThemeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBorderColor ¶
func DownloadColor ¶
func GetAccentColor ¶ added in v0.1.3
func GetAccentColor() string
func GetBorderColor ¶ added in v0.1.3
func GetBorderColor() string
func GetTextBrightColor ¶ added in v0.1.3
func GetTextBrightColor() string
func GetTextDimColor ¶ added in v0.1.3
func GetTextDimColor() string
func GetTextMutedColor ¶ added in v0.1.3
func GetTextMutedColor() string
func GetTextSoftColor ¶ added in v0.1.3
func GetTextSoftColor() string
func LogoColored ¶
func LogoDotColor ¶
func LogoSubtitle ¶
func SpeedRatio ¶
func UploadBorderColor ¶
func UploadColor ¶
Types ¶
type Theme ¶ added in v0.1.3
type Theme struct {
Name string
TextDim string
TextMuted string
TextSoft string
TextBase string
TextBright string
TextPure string
Border string
Accent string
DownloadStops [5][3]uint8
UploadStops [5][3]uint8
DownloadBorderStart [3]uint8
DownloadBorderEnd [3]uint8
UploadBorderStart [3]uint8
UploadBorderEnd [3]uint8
LogoStops [4][3]uint8
// ANSIDownload, ANSIUpload and ANSILogo hold terminal palette indices
// ("0"-"15") instead of RGB triples. When they are set the theme steps
// through them rather than interpolating, so the colors the user's
// terminal already defines come through untouched.
ANSIDownload [5]string
ANSIUpload [5]string
ANSILogo [4]string
}
func LoadCustomThemes ¶ added in v0.2.0
func LoadCustomThemes() []Theme
Click to show internal directories.
Click to hide internal directories.