common

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package common holds shared types and styles used across TUI components.

Index

Constants

This section is empty.

Variables

View Source
var (
	DimStyle          = lipgloss.NewStyle().Foreground(lipgloss.Color("241"))
	HelpStyle         = lipgloss.NewStyle().Foreground(lipgloss.Color("246"))
	TextStyle         = lipgloss.NewStyle().Foreground(lipgloss.Color("252"))
	TextSelectedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("62")).Bold(true)
	TitleStyle        = lipgloss.NewStyle().Foreground(lipgloss.Color("62")).Bold(true).Padding(0, 1)
)

Shared palette/UI styles

Functions

func ApplyTheme

func ApplyTheme(accent, text, dim, help lipgloss.Color)

ApplyTheme updates the shared styles to match the active theme. Call this from the tui package whenever the theme changes.

Types

type Mode

type Mode int

Mode represents the current editing mode of a viewer tab.

const (
	ModeView Mode = iota
	ModeNormal
	ModeInsert
	ModeReplace
	ModeVisual
	ModeVisualLine
)

Viewer editing modes.

Jump to

Keyboard shortcuts

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