theme

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTheme = EditorTheme{
	Foreground:                 Color(tcell.Color231.TrueColor()),
	Background:                 Color(tcell.Color235.TrueColor()),
	SelectionBackground:        Color(tcell.Color240.TrueColor()),
	CursorColor:                Color(tcell.Color245.TrueColor()),
	LineNumberBackground:       Color(tcell.Color235.TrueColor()),
	LineNumberForeground:       Color(tcell.Color245.TrueColor()),
	ActiveLineNumberBackground: Color(tcell.Color235.TrueColor()),
	ActiveLineNumberForeground: Color(tcell.Color250.TrueColor()),
	Highlights: map[string]Color{
		"constant":           Color(tcell.Color147.TrueColor()),
		"comment":            Color(tcell.Color245.TrueColor()),
		"keyword":            Color(tcell.Color153.TrueColor()),
		"string":             Color(tcell.Color216.TrueColor()),
		"function":           Color(tcell.Color115.TrueColor()),
		"type":               Color(tcell.Color115.TrueColor()),
		"variable.parameter": Color(tcell.Color115.TrueColor()),
	},
	DiagnosticLineNumberBackground: [4]Color{
		Color(tcell.Color52),
		Color(tcell.ColorDarkGoldenrod),
		Color(tcell.Color17),
		Color(tcell.Color53),
	},
}

Functions

This section is empty.

Types

type Color

type Color tcell.Color

func (*Color) Color

func (c *Color) Color() tcell.Color

func (*Color) UnmarshalTOML

func (c *Color) UnmarshalTOML(data any) error

type EditorTheme

type EditorTheme struct {
	Foreground                     Color            `toml:"foreground"`
	Background                     Color            `toml:"background"`
	SelectionBackground            Color            `toml:"selection_background"`
	CursorColor                    Color            `toml:"cursor_color"`
	LineNumberBackground           Color            `toml:"line_number_background"`
	LineNumberForeground           Color            `toml:"line_number_foreground"`
	ActiveLineNumberBackground     Color            `toml:"active_line_number_background"`
	ActiveLineNumberForeground     Color            `toml:"active_line_number_foreground"`
	Highlights                     map[string]Color `toml:"highlights"`
	DiagnosticLineNumberBackground [4]Color         `toml:"diagnostic_line_number_background"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳