style

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderHeight is the height of header
	HeaderHeight = 5
	// AvatarSize is the width and height of an avatar
	AvatarSize = 4
)

Variables

View Source
var Ethereum = &Style{
	FgColor:               tcell.ColorFloralWhite,
	BgColor:               tview.Styles.PrimitiveBackgroundColor,
	SectionColor:          tcell.ColorCoral,
	SectionColor2:         tcell.Color73,
	HelpKeyColor:          tcell.Color69,
	TitleColor:            tcell.ColorFloralWhite,
	BorderColor:           tcell.Color60,
	TitleColor2:           tcell.ColorFloralWhite,
	BorderColor2:          tcell.Color60,
	MethResultBorderColor: tcell.Color69,
	TableHeaderStyle:      new(tcell.Style).Foreground(tcell.Color147).Bold(true),
	DialogBgColor:         tview.Styles.PrimitiveBackgroundColor,
	DialogBorderColor:     tcell.Color147,
	ButtonBgColor:         tcell.ColorCoral,
	PrgBarCellColor:       tcell.ColorCoral,
	PrgBarTitleColor:      tcell.ColorFloralWhite,
	PrgBarBorderColor:     tcell.ColorDimGray,
	InputFieldLableColor:  tcell.ColorSandyBrown,
	InputFieldBgColor:     tcell.Color60,
}

Palette

Color60:         #5F5F87
Color69:         #5F87FF
Color73:         #5FAFAF
Color147:        #AFAFFF
ColorCoral:      #FF7F50
ColorDimGray:    #696969
ColorSandyBrown: #F4A460

Functions

func Bold

func Bold(s string) string

func BoldPadding

func BoldPadding(s string) string

func Color

func Color(s string, color tcell.Color) string

func Padding

func Padding(s string) string

Types

type Style

type Style struct {
	// main
	FgColor       tcell.Color
	BgColor       tcell.Color
	SectionColor  tcell.Color
	SectionColor2 tcell.Color

	// help
	HelpKeyColor tcell.Color

	// body
	TitleColor   tcell.Color
	BorderColor  tcell.Color
	TitleColor2  tcell.Color
	BorderColor2 tcell.Color

	// methodCall
	MethResultBorderColor tcell.Color

	// table
	TableHeaderStyle tcell.Style

	// dialog
	DialogBgColor     tcell.Color
	DialogBorderColor tcell.Color
	ButtonBgColor     tcell.Color

	// progress bar
	PrgBarCellColor   tcell.Color
	PrgBarTitleColor  tcell.Color
	PrgBarBorderColor tcell.Color

	// others
	InputFieldLableColor tcell.Color
	InputFieldBgColor    tcell.Color
}

Jump to

Keyboard shortcuts

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