theme

package
v0.0.0-...-fa69912 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSSDark []byte
View Source
var CSSLight []byte
View Source
var CustomFont []byte
View Source
var CustomFontB []byte
View Source
var CustomFontI []byte

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Font      *g.FontInfo
	FontI     *g.FontInfo
	FontB     *g.FontInfo
	FontSmall *g.FontInfo
	FontBig   *g.FontInfo
	FontBigI  *g.FontInfo
	FontBigB  *g.FontInfo

	Black       color.Color
	Brown       color.Color
	Cyan        color.Color
	DarkRed     color.Color
	Green       color.Color
	LightGreen  color.Color
	LightYellow color.Color
	Red         color.Color
	White       color.Color
	Yellow      color.Color
	// contains filtered or unexported fields
}

func New

func New(isDark bool) *Theme

func (*Theme) IsDark

func (t *Theme) IsDark() bool

func (*Theme) Switch

func (t *Theme) Switch(isDark bool)

Jump to

Keyboard shortcuts

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