src

package
v0.0.0-...-611a4ff Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorReset string = "\033[0m"
	ColorRed   Color  = "\033[41m"
	ColorGreen Color  = "\033[42m"
	ColorBlue  Color  = "\033[44m"
)

Variables

View Source
var (
	Green = lipgloss.NewStyle().Foreground(lipgloss.Color("#58fc97")).Bold(true)
	Cyan  = lipgloss.NewStyle().Foreground(lipgloss.Color("#38e1f4")).Bold(true)
)

Functions

This section is empty.

Types

type Character

type Character struct {
	// contains filtered or unexported fields
}

func (Character) RenderRow

func (c Character) RenderRow(row int, color Color) string

type CharacterKind

type CharacterKind int
const (
	CharNumber CharacterKind = iota
	CharColon
	CharEmpty
)

type Color

type Color string

func (Color) Background

func (c Color) Background() string

type PomodoroModel

type PomodoroModel struct {
	FocusDuration time.Duration
	RestDuration  time.Duration
	RemainingTime time.Duration
	IsRunning     bool
	IsResting     bool
	Width         int
	Height        int
}

func (PomodoroModel) Init

func (model PomodoroModel) Init() tea.Cmd

func (PomodoroModel) Update

func (model PomodoroModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (PomodoroModel) View

func (model PomodoroModel) View() string

type Segment

type Segment int
const (
	SegmentFull Segment = iota
	SegmentLeft
	SegmentCenter
	SegmentRight
	SegmentSides
	SegmentEmpty
)

func (Segment) Render

func (s Segment) Render(color Color) string

6 SPACES TOTAL

Jump to

Keyboard shortcuts

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