theme

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black     = "\033[1;30m"
	Red       = "\033[1;31m"
	Green     = "\033[1;32m"
	Yellow    = "\033[1;33m"
	Blue      = "\033[1;34m"
	Purple    = "\033[1;35m"
	Cyan      = "\033[1;36m"
	White     = "\033[1;37m"
	Reset     = "\033[0m"
	Success   = "\033[1;32m"
	Error     = "\033[1;31m"
	Warn      = "\033[1;33m"
	Underline = "\033[4m"
	Bold      = "\033[1m"
	Reverse   = "\033[7m"
)

Variables

View Source
var DefaultInfoTheme = Theme{
	"d": Style{
		Color: Blue,
	},
	"l": Style{
		Color: Purple,
	},
	"b": Style{
		Color: Yellow,
	},
	"c": Style{
		Color: Yellow,
	},
	"p": Style{
		Color: Yellow,
	},
	"s": Style{
		Color: Yellow,
	},
	"r": Style{
		Color: Yellow,
	},
	"w": Style{
		Color: Red,
	},
	"x": Style{
		Color: Green,
	},
	"-": Style{
		Color: White,
	},
	"time": Style{
		Color: Blue,
	},
	"size": Style{
		Color: Green,
	},
	"owner": Style{
		Color: Yellow,
	},
	"group": Style{
		Color: Yellow,
	},
	"reset": Style{
		Color: Reset,
	},
	"root": Style{
		Color: Red,
	},
	"git_modified_dot": Style{
		Color: Yellow,
		Icon:  "\uf111",
	},
	"git_renamed_dot": Style{
		Color: Blue,
		Icon:  "\uf111",
	},
	"git_copied_dot": Style{
		Color: Purple,
		Icon:  "\uf111",
	},
	"git_deleted_dot": Style{
		Color: Red,
		Icon:  "\uF111",
	},
	"git_added_dot": Style{
		Color: Green,
		Icon:  "\uF111",
	},
	"git_untracked_dot": Style{
		Color: Cyan,
		Icon:  "\uF111",
	},
	"git_ignored_dot": Style{
		Color: Black,
		Icon:  "\uF111",
	},
	"git_modified_sym": Style{
		Color: Yellow,
		Icon:  "~",
	},
	"git_renamed_sym": Style{
		Color: Blue,
		Icon:  "|",
	},
	"git_copied_sym": Style{
		Color: Purple,
		Icon:  "=",
	},
	"git_deleted_sym": Style{
		Color: Red,
		Icon:  "-",
	},
	"git_added_sym": Style{
		Color: Green,
		Icon:  "+",
	},
	"git_untracked_sym": Style{
		Color: Cyan,
		Icon:  "?",
	},
	"git_ignored_sym": Style{
		Color: Black,
		Icon:  "!",
	},
}
View Source
var DefaultTheme = Theme{}/* 187 elements not displayed */

Functions

func GetTheme

func GetTheme(path string) error

Types

type Style

type Style struct {
	// Color of the text.
	Color string
	// unicode Icon
	Icon string
}

type Theme

type Theme map[string]Style

Jump to

Keyboard shortcuts

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