Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Fuchsia = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Dark: "#EE6FF8", Light: "#EE6FF8"}) DarkFuchsia = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Dark: "#AD58B4", Light: "#F793FF"}) Red = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Dark: "#ED567A", Light: "#FF4672"}) DarkRed = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Dark: "#C74665", Light: "#FF6F91"}) White = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Dark: "#DDDDDD", Light: "#1A1A1A"}) )
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(path string, opts ...ModelOption) Model
NewModel creates a new model instance given a decks location.
type ModelOption ¶
type ModelOption func(*Model)
ModelOption configure the Model options.
func WithClock ¶
func WithClock(clock clock.Clock) ModelOption
WithClock initializes the model with the given clock.
func WithRepository ¶
func WithRepository(factory func(clock.Clock) (Repository, error)) ModelOption
WithRepository configure the terminal with an alternative repository.
func WithWindowSize ¶
func WithWindowSize(width, height int) ModelOption
WithWindowSize initializes the model with the given width and height.
Click to show internal directories.
Click to hide internal directories.