Documentation ¶
Index ¶
- Variables
- func CreateTrendIndicator(before float64, now float64) string
- func GenerateColorWithSeed(seed int64) lipgloss.Color
- func GetHeader(version string) string
- func GetPriceShadeColor(txValue *big.Float) lipgloss.Color
- func GetSpinner(message string) *yacspin.Spinner
- func ShortenAddress(address *common.Address) string
- func ShortenAddressStyled(address *common.Address, style lipgloss.Style) string
- func TerminalLink(params ...string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pink = lipgloss.AdaptiveColor{Light: "#FF44DD", Dark: "#FF0099"} OwnerGreen = lipgloss.AdaptiveColor{Light: "#43BF6D", Dark: "#73F59F"} Subtle = lipgloss.AdaptiveColor{Light: "#D9DCCF", Dark: "#383838"} OpenseaToneBlue = lipgloss.Color("#5f7699") TrendGreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#66CC66")) TrendLightGreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#667066")) TrendRedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF6666")) TrendLightRedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#806666")) AlmostWhiteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#EEE")) DarkWhiteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#DDD")) VeryLightGrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#BBB")) LightGrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#999")) GrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#666")) DarkGrayStyle = lipgloss.NewStyle().Foreground(darkGray) DarkerGrayStyle = lipgloss.NewStyle().Foreground(darkerGray) DarkestGrayStyle = lipgloss.NewStyle().Foreground(darkestGray) BoldStyle = lipgloss.NewStyle().Bold(true) PinkBoldStyle = BoldStyle.Copy().Foreground(Pink) OwnerGreenBoldStyle = BoldStyle.Copy().Foreground(OwnerGreen) GrayBoldStyle = BoldStyle.Copy().Foreground(GrayStyle.GetForeground()) Sharrow = BoldStyle.Copy().SetString("→") DividerArrowRight = GrayBoldStyle.SetString("→") DividerArrowLeft = GrayBoldStyle.SetString("←") )
View Source
var PaletteRLD = []lipgloss.Color{
"#D23469",
"#400817",
"#8D1537",
"#6A0F27",
"#6F2B4E",
"#A14C7C",
"#A46C8C",
"#6C3441",
}
View Source
var ShadesPink = []lipgloss.Color{
"#ffffff",
"#ffe5f4",
"#ffccea",
"#ffb2e0",
"#ff99d6",
"#ff7fcc",
"#ff66c1",
"#ff4cb7",
"#ff32ad",
"#ff19a3",
"#ff0099",
}
Functions ¶
func CreateTrendIndicator ¶
func GenerateColorWithSeed ¶
GenerateColorWithSeed generates a color based on the given seed.
func GetSpinner ¶
GetSpinner returns a new spinner with default configuration.
func ShortenAddress ¶
ShortenAddress returns a shortened address styled with colors.
func ShortenAddressStyled ¶
ShortenAddressStyled returns a shortened address styled with colors.
func TerminalLink ¶ added in v0.0.7
TerminalLink formats a link for the terminal using ANSI codes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.