Documentation ¶
Index ¶
- Variables
- func Bold(str string) string
- func CreateTrendIndicator(before float64, now float64) lipgloss.Style
- func EnforceMinLength(str string, minLength int) string
- func FormatTokenInfo(tokenID *big.Int, collectionName string, primaryStyle lipgloss.Style, ...) string
- func GenerateColorWithSeed(seed int64) lipgloss.Color
- func GetBuyDiffShadeColor(priceDiff float64) lipgloss.Color
- func GetHeader(version string) string
- func GetNodeColor(eventType int) lipgloss.Color
- func GetPriceShadeColor(txValue float64) lipgloss.Color
- func GetSmallHeader(version string) string
- func GetSpinner(message string) *yacspin.Spinner
- func ShortenAddress(address *common.Address) string
- func ShortenAddressStyled(address *common.Address, style lipgloss.Style) string
- func ShortenCollectionName(collectionName string, numItems int) string
- func ShortenHashStyled(txHash common.Hash) string
- func ShortenedTokenIDStyled(tokenID *big.Int, primaryStyle lipgloss.Style, secondaryStyle lipgloss.Style) string
- func TerminalLink(params ...string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pink = lipgloss.AdaptiveColor{Light: "#FF44DD", Dark: "#FF0099"} Subtle = lipgloss.AdaptiveColor{Light: "#D9DCCF", Dark: "#383838"} DarkGray = lipgloss.Color("#333") LightGrayForeground = lipgloss.Color("#BBB") OpenSea = lipgloss.NewStyle().Foreground(OpenseaToneBlue).Render Blur = lipgloss.NewStyle().Foreground(BlurOrange).Render OpenseaToneBlue = lipgloss.Color("#5f7699") WebUIColor = lipgloss.Color("#662288") BlurOrange = lipgloss.Color("#FF8700") TrendGreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#66CC66")) TrendLightGreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#77A077")) TrendRedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF6666")) TrendLightRedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#997777")) AlmostWhiteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#eeeeee")) DarkWhiteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#dddddd")) VeryLightGrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#bbbbbb")) LightGray = lipgloss.Color("#999999") LightGrayStyle = lipgloss.NewStyle().Foreground(LightGray) Gray4Style = lipgloss.NewStyle().Foreground(lipgloss.Color("#444")) Gray5Style = lipgloss.NewStyle().Foreground(lipgloss.Color("#555")) Gray6Style = lipgloss.NewStyle().Foreground(lipgloss.Color("#666")) Gray7Style = lipgloss.NewStyle().Foreground(lipgloss.Color("#777")) Gray8Style = lipgloss.NewStyle().Foreground(lipgloss.Color("#888")) GrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#666666")) 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) GrayBoldStyle = BoldStyle.Copy().Foreground(GrayStyle.GetForeground()) Sharrow = lipgloss.NewStyle().SetString("→") DividerArrowRight = LightGrayStyle.Copy().SetString("→") DividerArrowLeft = GrayBoldStyle.SetString("←") )
View Source
var PaletteRLD = []lipgloss.Color{
"#D23469",
"#400817",
"#8D1537",
"#6A0F27",
"#6F2B4E",
"#A14C7C",
"#A46C8C",
"#6C3441",
}
View Source
var ShadesPink = []lipgloss.Color{
"#fff1f6",
"#ffe5f4",
"#ffccea",
"#ffb2e0",
"#ff99d6",
"#ff7fcc",
"#ff66c1",
"#ff4cb7",
"#ff32ad",
"#ff19a3",
"#ff0099",
}
Functions ¶
func EnforceMinLength ¶ added in v0.4.0
func FormatTokenInfo ¶ added in v0.2.0
func FormatTokenInfo(tokenID *big.Int, collectionName string, primaryStyle lipgloss.Style, secondaryStyle lipgloss.Style, faint bool, color bool) string
FormatTokenInfo func FormatTokenInfo(tokenID *big.Int, collection *collections.GbCollection, faint bool, color bool) string {.
func GenerateColorWithSeed ¶
GenerateColorWithSeed generates a color based on the given seed.
func GetBuyDiffShadeColor ¶ added in v0.4.0
func GetHeader ¶
SetString("•"). Padding(0, 0). Foreground(pink)
var Divider = baseDivider.String().
func GetNodeColor ¶ added in v0.3.0
func GetPriceShadeColor ¶
func GetSmallHeader ¶ added in v0.7.5
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 ShortenCollectionName ¶ added in v0.4.0
func ShortenHashStyled ¶ added in v0.9.0
ShortenHashsStyled returns a shortened hash styled with colors.
func ShortenedTokenIDStyled ¶ added in v0.6.0
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.