ui

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CautionForeColor = "#FFF10E"
	CautionBackColor = "#131313"
)

Variables

View Source
var (
	CautionStyle = baseStyle.
		Width(40).
		AlignHorizontal(lipgloss.Center).
		MarginTop(2).
		MarginLeft(4).
		Padding(1, 2).
		Background(lipgloss.Color(CautionBackColor)).
		Foreground(lipgloss.Color(CautionForeColor))
)

Functions

This section is empty.

Types

type MsgErr

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

type ProgressState

type ProgressState int
const (
	ProgressHash ProgressState = iota
	ProgressHashComplete
	ProgressUpdate
	ProgressUpdateComplete
	ProgressHashErr
	ProgressUpdateErr
	ProgressDone
)

type ResultDisplayItem

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

type State

type State int
const (
	StateWelcome State = iota
	StateConsentSelection
	StateHDDSelection
	StateReviewConsentSelection
	StateUserReview
	StateDoAllWork
	StateDoHashWork
	StateDoUpdateWork
	StateDoHashReviewWork
	StateDoUpdateReviewWork
	StateHashProgressing
	StateUpdateProgressing
	StateResults
	StateError
	StateDone
	StateAbort
)

type TuiModel

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

func NewTUI

func NewTUI(ip *lib.ImageProcessor) TuiModel

func (TuiModel) Init

func (m TuiModel) Init() tea.Cmd

func (TuiModel) Update

func (m TuiModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TuiModel) View

func (m TuiModel) View() string

Jump to

Keyboard shortcuts

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