Documentation
¶
Overview ¶
+build linux
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DarkTheme = Theme{
TextColor: "white",
FieldTextColor: "white",
HighlightTextColor: "yellow",
FieldPlaceholderTextColor: "green",
BackgroundColor: "black",
FieldBackgroundColor: "blue",
DropdownBackgroundColor: "grey",
}
DarkTheme represents a dark theme
View Source
var LightTheme = Theme{
TextColor: "black",
FieldTextColor: "black",
HighlightTextColor: "red",
FieldPlaceholderTextColor: "white",
BackgroundColor: "white",
FieldBackgroundColor: "lightgrey",
DropdownBackgroundColor: "red",
}
LightTheme represents a light theme
View Source
var Themes = map[string]*Theme{ "dark": &DarkTheme, "light": &LightTheme, }
Themes contains the string-to-theme map
Functions ¶
func SetConsoleTitle ¶
SetConsoleTitle sets the console title
Types ¶
type ModalHandler ¶
ModalHandler is an interface that handles modal dialogs
type PageHandler ¶
type PageHandler struct {
tview.Primitive
Quit chan bool
// contains filtered or unexported fields
}
PageHandler handles the layout of the application, pages and modal dialogs
func (*PageHandler) AddPage ¶
func (ph *PageHandler) AddPage(page Page) *PageHandler
AddPage adds a publicly listed page to the frame
func (*PageHandler) InputCapture ¶
func (ph *PageHandler) InputCapture() func(event *tcell.EventKey) *tcell.EventKey
InputCapture returns a function that handles input capture for PageHandler
func (*PageHandler) ModalMessage ¶
func (ph *PageHandler) ModalMessage(msg string)
ModalMessage displays a modal window with a message and OK button
func (*PageHandler) ModalYesNo ¶
func (ph *PageHandler) ModalYesNo(msg string, yes func())
ModalYesNo displays a modal dialog with a message and yes/no options
func (*PageHandler) SwitchToPage ¶
func (ph *PageHandler) SwitchToPage(page int)
SwitchToPage switches to the page with the number 'page'
Click to show internal directories.
Click to hide internal directories.