themes

package
v0.0.0-...-6c48755 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Base16 = &pb.Theme{
	Name: "base16",
	Colors: []*pb.Color{
		XTermColor("bg", int32(tcell.ColorDefault)),
		XTermColor("fg", int32(tcell.ColorWhite)),
		XTermColor("title-bg", int32(tcell.ColorBlue)),
		XTermColor("title-fg", int32(tcell.ColorWhite)),
		XTermColor("loader-fg", int32(tcell.ColorBlue)),
		XTermColor("selection-fg", int32(tcell.ColorBlack)),
		XTermColor("selection-bg", int32(tcell.ColorWhite)),
		XTermColor("unfocused-fg", int32(tcell.ColorWhite)),
		XTermColor("unfocused-bg", int32(tcell.ColorGray)),
		XTermColor("disabled-fg", int32(tcell.ColorGray)),
		XTermColor("disabled-bg", int32(tcell.ColorDefault)),
		XTermColor("status-bar", int32(tcell.ColorGray)),
		XTermColor("error-fg", int32(tcell.ColorWhite)),
		XTermColor("error-bg", int32(tcell.ColorRed)),
		XTermColor("warning-fg", int32(tcell.ColorBlack)),
		XTermColor("warning-bg", int32(tcell.ColorYellow)),
		XTermColor("info-fg", int32(tcell.ColorBlack)),
		XTermColor("info-bg", int32(tcell.ColorYellow)),
		XTermColor("confirm-fg", int32(tcell.ColorBlack)),
		XTermColor("confirm-bg", int32(tcell.ColorYellow)),
	},
	Styles: BaseStyles(),
}

Base16 uses base 16 colors of the terminal

View Source
var DefaultThemes []*pb.Theme
View Source
var Monokai = &pb.Theme{
	Name: "monokai",
	Colors: []*pb.Color{
		RGBColor("bg", "272822"),
		RGBColor("fg", "f8f8f2"),
		RGBColor("title-bg", "66d9ef"),
		RGBColor("title-fg", "272822"),
		RGBColor("loader-fg", "66d9ef"),
		RGBColor("selection-fg", "272822"),
		RGBColor("selection-bg", "a6e22e"),
		RGBColor("unfocused-fg", "75715e"),
		RGBColor("unfocused-bg", "a1efe4"),
		RGBColor("disabled-fg", "75715e"),
		RGBColor("disabled-bg", "272822"),
		RGBColor("status-bar", "a1efe4"),
		RGBColor("error-fg", "f8f8f2"),
		RGBColor("error-bg", "fe1d6e"),
		RGBColor("warning-fg", "272822"),
		RGBColor("warning-bg", "f4bf75"),
		RGBColor("info-fg", "272822"),
		RGBColor("info-bg", "f4bf75"),
		RGBColor("confirm-fg", "272822"),
		RGBColor("confirm-bg", "f4bf75"),
	},
	Styles: BaseStyles(),
}
View Source
var Paraiso = &pb.Theme{
	Name: "paraiso",
	Colors: []*pb.Color{
		RGBColor("bg", "2f1e2e"),
		RGBColor("fg", "a39e9b"),
		RGBColor("title-bg", "5bc4bf"),
		RGBColor("title-fg", "2f1e2e"),
		RGBColor("loader-fg", "7587a6"),
		RGBColor("selection-fg", "2f1e2e"),
		RGBColor("selection-bg", "fec418"),
		RGBColor("unfocused-fg", "2f1e2e"),
		RGBColor("unfocused-bg", "815ba4"),
		RGBColor("disabled-fg", "776e71"),
		RGBColor("disabled-bg", "2f1e2e"),
		RGBColor("status-bar", "776e71"),
		RGBColor("error-fg", "2f1e2e"),
		RGBColor("error-bg", "ef6155"),
		RGBColor("warning-fg", "2f1e2e"),
		RGBColor("warning-bg", "fec418"),
		RGBColor("info-fg", "2f1e2e"),
		RGBColor("info-bg", "fec418"),
		RGBColor("confirm-fg", "2f1e2e"),
		RGBColor("confirm-bg", "fec418"),
	},
	Styles: BaseStyles(),
}
View Source
var Solarized = &pb.Theme{
	Name: "solarized",
	Colors: []*pb.Color{
		RGBColor("bg", "002b36"),
		RGBColor("fg", "93a1a1"),
		RGBColor("title-bg", "2aa198"),
		RGBColor("title-fg", "fdf6e3"),
		RGBColor("loader-fg", "2aa198"),
		RGBColor("selection-fg", "002b36"),
		RGBColor("selection-bg", "fdf6e3"),
		RGBColor("unfocused-fg", "002b36"),
		RGBColor("unfocused-bg", "93a1a1"),
		RGBColor("disabled-fg", "657b83"),
		RGBColor("disabled-bg", "002b36"),
		RGBColor("status-bar", "657b83"),
		RGBColor("error-fg", "002b36"),
		RGBColor("error-bg", "dc322f"),
		RGBColor("warning-fg", "002b36"),
		RGBColor("warning-bg", "b58900"),
		RGBColor("info-fg", "002b36"),
		RGBColor("info-bg", "b58900"),
		RGBColor("confirm-fg", "002b36"),
		RGBColor("confirm-bg", "b58900"),
	},
	Styles: BaseStyles(),
}
View Source
var Twilight = &pb.Theme{
	Name: "twilight",
	Colors: []*pb.Color{
		RGBColor("bg", "1e1e1e"),
		RGBColor("fg", "a7a7a7"),
		RGBColor("title-bg", "7587a6"),
		RGBColor("title-fg", "ffffff"),
		RGBColor("loader-fg", "7587a6"),
		RGBColor("selection-fg", "1e1e1e"),
		RGBColor("selection-bg", "f9ee98"),
		RGBColor("unfocused-fg", "5f5a60"),
		RGBColor("unfocused-bg", "8f9d6a"),
		RGBColor("disabled-fg", "5f5a60"),
		RGBColor("disabled-bg", "1e1e1e"),
		RGBColor("status-bar", "5f5a60"),
		RGBColor("error-fg", "1e1e1e"),
		RGBColor("error-bg", "cf6a4c"),
		RGBColor("warning-fg", "1e1e1e"),
		RGBColor("warning-bg", "9b859d"),
		RGBColor("info-fg", "1e1e1e"),
		RGBColor("info-bg", "9b859d"),
		RGBColor("confirm-fg", "1e1e1e"),
		RGBColor("confirm-bg", "9b859d"),
	},
	Styles: BaseStyles(),
}

Functions

func Attributes

func Attributes(attrs ...pb.StyleAttribute) []pb.StyleAttribute

func BaseStyles

func BaseStyles() []*pb.Style

func RGBColor

func RGBColor(name string, color string) *pb.Color

func RegisterTheme

func RegisterTheme(t *pb.Theme)

func XTermColor

func XTermColor(name string, color int32) *pb.Color

Types

This section is empty.

Jump to

Keyboard shortcuts

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