theme

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

func Accent() lipgloss.Style

func Dim

func Dim() lipgloss.Style

func DirArrow

func DirArrow(download bool) string

func DownloadBorderColor

func DownloadBorderColor(intensity float64) lipgloss.Color

func DownloadColor

func DownloadColor(intensity float64) lipgloss.Style

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 Label

func Label() lipgloss.Style

func LogoColored

func LogoColored(width int) []string

func LogoDotColor

func LogoDotColor(pulse float64) lipgloss.Style

func LogoSubtitle

func LogoSubtitle(width int) string

func Muted

func Muted() lipgloss.Style

func PeakColor

func PeakColor(pulse float64) lipgloss.Style

func SetTheme added in v0.1.3

func SetTheme(name string)

func Soft

func Soft() lipgloss.Style

func SpeedRatio

func SpeedRatio(current, rollingMax float64) float64

func TextDim

func TextDim() lipgloss.Style

func Title

func Title() lipgloss.Style

func UploadBorderColor

func UploadBorderColor(intensity float64) lipgloss.Color

func UploadColor

func UploadColor(intensity float64) lipgloss.Style

func ValuePrimary

func ValuePrimary(intensity float64, download bool) lipgloss.Style

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
}

func LoadCustomThemes added in v0.2.0

func LoadCustomThemes() []Theme

type ThemeInfo added in v0.1.3

type ThemeInfo struct {
	Name        string
	Description string
}

func ListThemes added in v0.1.3

func ListThemes() []ThemeInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL