Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Header = &unison.ThemeColor{Light: unison.RGB(80, 80, 80), Dark: unison.RGB(64, 64, 64)} OnHeader = Header.DeriveOn() )
Additional theme colors
Functions ¶
This section is empty.
Types ¶
type Colors ¶
type Colors struct {
// contains filtered or unexported fields
}
Colors holds a set of themed colors.
func NewFromFS ¶
NewFromFS creates a new set of colors from a file. Any missing values will be filled in with defaults.
func (*Colors) MakeCurrent ¶
func (c *Colors) MakeCurrent()
MakeCurrent applies these colors to the current theme color set and updates all windows.
func (*Colors) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Colors) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type ThemedColor ¶
type ThemedColor struct { ID string Title string Color *unison.ThemeColor }
ThemedColor holds a themed color.
func Factory ¶
func Factory() []*ThemedColor
Factory returns the original theme before any modifications.
Click to show internal directories.
Click to hide internal directories.