theme

package
v0.7.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ContentWidth = 76
	BoxHeight    = 24
)

Variables

View Source
var (
	ColorPrimary       = lipgloss.Color("255")
	ColorLabel         = lipgloss.Color("253")
	ColorDim           = lipgloss.Color("246")
	ColorGrayed        = lipgloss.Color("243")
	ColorFaint         = lipgloss.Color("240")
	ColorBorder        = lipgloss.Color("248")
	ColorSuccess       = lipgloss.Color("34")
	ColorDanger        = lipgloss.Color("196")
	ColorBitcoin       = lipgloss.Color("172")
	ColorLightning     = lipgloss.Color("135")
	ColorBtnBg         = lipgloss.Color("255")
	ColorBtnFg         = lipgloss.Color("232")
	ColorTabActiveBg   = lipgloss.Color("252")
	ColorTabActiveFg   = lipgloss.Color("232")
	ColorTabInactiveBg = lipgloss.Color("242")
	ColorTabInactiveFg = lipgloss.Color("251")
	ColorTitleFg       = lipgloss.Color("232")
	ColorTitleBg       = lipgloss.Color("252")
	ColorCursor        = lipgloss.Color("251")

	// Channel bar
	ColorChanLocal     = lipgloss.Color("34")
	ColorChanRemote    = lipgloss.Color("63")
	ColorChanLocalDim  = lipgloss.Color("22")
	ColorChanRemoteDim = lipgloss.Color("237")

	ColorCheck  = lipgloss.Color("34")
	ColorUpdate = lipgloss.Color("34")
)
View Source
var (
	Bitcoin   lipgloss.Style
	Lightning lipgloss.Style
)
View Source
var (
	GreenDot lipgloss.Style
	RedDot   lipgloss.Style
)
View Source
var (
	BtnNormal  lipgloss.Style
	BtnFocused lipgloss.Style
)
View Source
var (
	ActiveTab   lipgloss.Style
	InactiveTab lipgloss.Style
)
View Source
var (
	Box            lipgloss.Style
	SelectedBorder lipgloss.Style
	NormalBorder   lipgloss.Style
	GrayedBorder   lipgloss.Style
)
View Source
var (
	ProgTitle   lipgloss.Style
	ProgBox     lipgloss.Style
	ProgDone    lipgloss.Style
	ProgRunning lipgloss.Style
	ProgPending lipgloss.Style
	ProgFail    lipgloss.Style
)
View Source
var (
	SetupSection    lipgloss.Style
	SetupSelected   lipgloss.Style
	SetupUnselected lipgloss.Style
	SetupValue      lipgloss.Style
	SummaryKey      lipgloss.Style
	SummaryVal      lipgloss.Style
)
View Source
var (
	HelpKey  lipgloss.Style
	HelpDesc lipgloss.Style
	HelpSep  lipgloss.Style
)
View Source
var (
	NavItem   lipgloss.Style
	NavActive lipgloss.Style
	NavCursor lipgloss.Style

	TableHeader lipgloss.Style
	TableDim    lipgloss.Style

	FrameBorder lipgloss.Style

	AddonBorderNormal lipgloss.Style
	AddonTitleNormal  lipgloss.Style
	AddonTitleActive  lipgloss.Style
)

Functions

func Init

func Init(isDark bool)

Init sets the initial theme mode and rebuilds all colors and styles. Call once from NewModel.

func IsDark

func IsDark() bool

IsDark returns the current mode.

func PlainText

func PlainText(text string) string

PlainText keeps observed comments and host metadata from controlling the terminal or disguising their displayed order. Stored key bytes stay intact.

func ThemeIcon

func ThemeIcon() string

ThemeIcon returns the icon for the theme toggle. Shows what you'd switch TO: ☼ when dark (switch to light), ☽ when light (switch to dark).

func Toggle

func Toggle() string

Toggle flips the theme and returns the new mode name ("dark" or "light") for config persistence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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