Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectDarkBackground ¶
func DetectDarkBackground() bool
DetectDarkBackground asks the terminal for its background color. It must run before Bubble Tea takes over the terminal, so Run calls it once and the answer is reused for `:theme system` later.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the whole terminal UI.
type Options ¶
type Options struct {
Backend backend.Backend
Target backend.Target
OpenPath string
Version string
// WorkspaceSource controls name resolution throughout the session. The
// TUI defaults to its own workspaces, even inside the desktop launcher.
WorkspaceSource string
}
Options configure a terminal session.
type Theme ¶
type Theme struct {
// ID and Name identify the color scheme: "dark-hard", "Gruvbox · Dark Hard".
ID, Name string
Dark bool
Mode string
// ChromaStyle is the registered chroma style that colors fenced code
// with this palette, in the editor and in the preview.
ChromaStyle string
Accent, AccentSoft, Fg, FgDim, FgMuted, Bg, BgPanel, BgSelected, BgStatus lipgloss.Color
Red, Green, Yellow, Blue, Purple, Aqua lipgloss.Color
Base lipgloss.Style
Dim lipgloss.Style
Muted lipgloss.Style
Bold lipgloss.Style
Title lipgloss.Style
Selected lipgloss.Style
SelectedFocus lipgloss.Style
// CursorRow is the quiet, full-width block under the cursor of a
// navigation surface; focus is told by the border, not by the row.
CursorRow lipgloss.Style
Status lipgloss.Style
StatusMode lipgloss.Style
StatusError lipgloss.Style
Border lipgloss.Style
BorderFocus lipgloss.Style
TabActive lipgloss.Style
TabInactive lipgloss.Style
Heading lipgloss.Style
Link lipgloss.Style
Tag lipgloss.Style
Code lipgloss.Style
Quote lipgloss.Style
Marker lipgloss.Style
Checkbox lipgloss.Style
Done lipgloss.Style
Cursor lipgloss.Style
Visual lipgloss.Style
SearchHit lipgloss.Style
Overlay lipgloss.Style
OverlayTitle lipgloss.Style
Hint lipgloss.Style
Emphasis lipgloss.Style
Strong lipgloss.Style
Frontmatter lipgloss.Style
LineNumber lipgloss.Style
Overdue lipgloss.Style
KeyHint lipgloss.Style
Match lipgloss.Style
}
Theme is the palette the terminal UI draws with. It is built from one of the desktop app's color schemes (internal/themes), resolved to light or dark from theme_mode, or from the terminal background when the mode is auto.
Source Files
¶
- ansistrip.go
- app.go
- buffers.go
- canvas.go
- cellsize_unix.go
- codehl.go
- commands.go
- commands_parity.go
- data.go
- dateinput.go
- editorext.go
- editorview.go
- embeds.go
- frame.go
- helpdata.go
- hints.go
- images.go
- input.go
- keys.go
- kitty_diacritics.go
- leader.go
- mouse.go
- noteops.go
- overlays.go
- panels.go
- panes.go
- pick_overlay.go
- preview.go
- previewglamour.go
- session.go
- sidebar.go
- tagcomplete.go
- textutil.go
- theme.go
- views.go
- views_database.go
- views_database_board.go
- views_database_edit.go
- views_database_menus.go
- views_database_mouse.go
- views_hints.go
- views_home.go
- views_lists.go
- views_misc.go
- views_mouse.go
- views_tasks.go
- watcher.go
Click to show internal directories.
Click to hide internal directories.