theme

package
v0.0.0-...-bb4fd4e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorName

func ColorName(fname string) (colorName string)

func Filter

func Filter(fname, prefix, suffix string) (result bool)

func MakeThemeCSS

func MakeThemeCSS() string

Types

type Color

type Color struct {
	Name            string `json:"name"`
	Color           string `json:"color"`
	BackGroundColor string `json:"backGroundColor"`
	Style           string `json:"style"`
}

type Theme

type Theme []*Color

func NewThemeFromFile

func NewThemeFromFile(fname string) (theme Theme, err error)

func (Theme) MakeCSS

func (theme Theme) MakeCSS() (s string)

func (Theme) WriteCSS

func (theme Theme) WriteCSS(fname string) (err error)

type Themes

type Themes map[string]Theme

func (Themes) ReadJSON

func (themes Themes) ReadJSON(fname string) (err error)

func (Themes) WriteJSON

func (themes Themes) WriteJSON(fname string) (err error)

Jump to

Keyboard shortcuts

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