ui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SortByTitle    sortField = "Title"
	SortByDueDate  sortField = "Due Date"
	SortByPriority sortField = "Priority"
	SortByState    sortField = "State"

	Asc  sortDirection = "Asc"
	Desc sortDirection = "Desc"
)

Variables

View Source
var (
	AppStyle = lipgloss.NewStyle().
				Padding(1, 2).
				Background(baseBg).
				Foreground(baseFg)

	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(accent).
				Align(lipgloss.Center).
				Background(baseBg)

	BigTitle = TitleStyle.
				Height(2)

	LabelStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(yellow)

	FooterStyle = lipgloss.NewStyle().
				Foreground(accent).
				Align(lipgloss.Center).
				MarginTop(1)

	TaskStatusDone = lipgloss.NewStyle().
					Foreground(green)

	TaskStatusTodo = lipgloss.NewStyle().
					Foreground(red)
)

General styles

View Source
var (
	SelectedTaskStyle = lipgloss.NewStyle().
						Foreground(baseFg).
						Background(lipgloss.Color("#44475a")).
						Bold(true)

	LeftPaneStyle = lipgloss.NewStyle().
					Background(lipgloss.Color("#1e1f29")).
					Padding(0, 1)

	RightPaneStyle = lipgloss.NewStyle().
					Background(lipgloss.Color("#1c1c1c")).
					Padding(0, 1)
)

Pane and selection styles

View Source
var (
	OverdueStyle  = lipgloss.NewStyle().Foreground(red)
	UpcomingStyle = lipgloss.NewStyle().Foreground(yellow)
	FutureStyle   = lipgloss.NewStyle().Foreground(green)
)

Status styles

View Source
var (
	DividerGradient = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#6272a4"))

	HeaderStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#00FFCC")).
				Background(lipgloss.Color("#222222")).
				Padding(1, 0).
				Align(lipgloss.Center).
				Bold(true)

	DividerStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#444444"))

	SortInfoStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("241")).
					Italic(true).
					MarginBottom(1)

	HelpStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("240")).
				Padding(0, 1).
				Align(lipgloss.Center)
)

Miscellaneous styles

Functions

func New added in v1.0.1

func New(taskManager *core.TaskManager) tea.Model

Types

This section is empty.

Jump to

Keyboard shortcuts

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