Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Color formatter. Color = formatters.Register("Color", chroma.FormatterFunc(func(w io.Writer, s *chroma.Style, iterator chroma.Iterator) error { for t := iterator(); t != chroma.EOF; t = iterator() { colour := s.Get(t.Type).Colour backGroundColor = s.Get(t.Type).Background.String() var sb strings.Builder sb.WriteString("[") sb.WriteString(colour.String()) sb.WriteString("]") sb.WriteString(t.Value) if _, err := w.Write([]byte(sb.String())); err != nil { return err } } return nil })) )
View Source
var Themes = map[string]Theme{
"monokai": {
BackGroundColor: tcell.GetColor("#272822"),
TitleColor: tcell.GetColor("#66d9ef"),
KeywordColor: tcell.GetColor("#f92672"),
TextColor: tcell.GetColor("#e6db74"),
BorderColor: tcell.GetColor("#f8f8f2"),
},
}
Functions ¶
Types ¶
type Theme ¶ added in v0.3.5
type Theme struct { BackGroundColor tcell.Color TitleColor tcell.Color KeywordColor tcell.Color TextColor tcell.Color BorderColor tcell.Color }
type UI ¶
type UI struct { App *tview.Application Label string EndOfOptionsSeparator bool CommandText *tview.TextView OptionsInput *tview.InputField EndOptionsText *tview.TextView OpeningQuoteText *tview.TextView ArgumentsInput *tview.InputField ArgumentsInputWide *tview.TextArea ArgumentsInputWideFlex *tview.Flex ClosingQuoteText *tview.TextView EndArgumentsText *tview.TextView FileOptionsStdin string FileOptionsText *tview.TextView FileOptionsTreeNode *tview.TreeNode FileOptionsTreeView *tview.TreeView FileOptionsInputMap map[string]bool FileOptionsInputSlice []string OutputView *tview.TextView FileView *tview.TextView ChildFlex *tview.Flex Flex *tview.Flex ActiveInput **tview.InputField ActiveFlex **tview.Flex ThemeName string Theme Theme }
User interface
Click to show internal directories.
Click to hide internal directories.