theme

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingSelection = errors.New("missing required ui.selection scope")
	ErrInvalidTheme     = errors.New("invalid theme")
)

Functions

This section is empty.

Types

type Theme

type Theme struct {
	// contains filtered or unexported fields
}

func Decode

func Decode(data map[string]any) (*Theme, []string)

func Default

func Default() (*Theme, []string, error)

func Load

func Load(name string) (*Theme, []string, error)

func (*Theme) Get

func (t *Theme) Get(scope string) tui.Style

func (*Theme) Is16Color

func (t *Theme) Is16Color() bool

func (*Theme) Name

func (t *Theme) Name() string

func (*Theme) RainbowLength

func (t *Theme) RainbowLength() int

func (*Theme) Scopes

func (t *Theme) Scopes() []string

func (*Theme) TryGet

func (t *Theme) TryGet(scope string) (tui.Style, bool)

func (*Theme) TryGetExact

func (t *Theme) TryGetExact(scope string) (tui.Style, bool)

func (*Theme) Validate

func (t *Theme) Validate() error

Jump to

Keyboard shortcuts

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