theme

package
v0.0.0-...-586e974 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: BSD-2-Clause, BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScopeSetting

type ScopeSetting struct {
	Name     string
	Scope    string
	Settings Settings
}

func (ScopeSetting) String

func (s ScopeSetting) String() (ret string)

type Settings

type Settings map[string]render.Colour

TODO(q): personally I don't care about the font style attributes

func (*Settings) UnmarshalJSON

func (s *Settings) UnmarshalJSON(data []byte) error

type Theme

type Theme struct {
	Name     string
	Settings []ScopeSetting
	UUID     string
}

For loading tmTheme files

func Load

func Load(filename string) (*Theme, error)

func (*Theme) ClosestMatchingSetting

func (t *Theme) ClosestMatchingSetting(scope string) *ScopeSetting

func (*Theme) GlobalSettings

func (t *Theme) GlobalSettings() (ret render.Settings)

func (*Theme) Spice

func (t *Theme) Spice(vr *render.ViewRegions) (ret render.Flavour)

func (Theme) String

func (t Theme) String() (ret string)

Jump to

Keyboard shortcuts

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