style

package
v0.0.0-...-40e63e7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stylable

type Stylable interface {
	Style(string) tcell.Style
	SetStylesheet(Stylesheet)
	Stylesheet() Stylesheet
}

type Styled

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

Styled implements Stylable

func (*Styled) MessageStyle

func (w *Styled) MessageStyle(msg log.Message) tcell.Style

func (*Styled) SetStylesheet

func (w *Styled) SetStylesheet(stylesheet Stylesheet)

func (*Styled) Style

func (w *Styled) Style(s string) tcell.Style

func (*Styled) Stylesheet

func (w *Styled) Stylesheet() Stylesheet

type Stylesheet

type Stylesheet map[string]tcell.Style

Jump to

Keyboard shortcuts

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