ui

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentTheme = "default"
View Source
var ThemeNames = []string{"default", "catppuccin", "dracula", "tokyonight", "nord", "gruvbox", "rosepine", "solarized", "monokai", "mono"}
View Source
var Themes = map[string]Theme{
	"default":    {Accent: "#A6E3A1", Key: "#89B4FA", Group: "#F9E2AF", Running: "#A6E3A1", Warning: "#F9E2AF", Stopped: "#6C7086", Errored: "#F38BA8", Muted: "#6C7086", Label: "#9399B2", SelBg: "#313244", SelFg: "#CDD6F4"},
	"catppuccin": {Accent: "183", Key: "111", Group: "223", Running: "151", Warning: "223", Stopped: "240", Errored: "211", Muted: "240", Label: "245", SelBg: "237", SelFg: "253"},
	"dracula":    {Accent: "141", Key: "117", Group: "228", Running: "84", Warning: "228", Stopped: "240", Errored: "212", Muted: "240", Label: "245", SelBg: "238", SelFg: "253"},
	"tokyonight": {Accent: "111", Key: "117", Group: "222", Running: "149", Warning: "222", Stopped: "240", Errored: "210", Muted: "240", Label: "245", SelBg: "237", SelFg: "253"},
	"nord":       {Accent: "109", Key: "110", Group: "222", Running: "108", Warning: "222", Stopped: "240", Errored: "167", Muted: "240", Label: "245", SelBg: "238", SelFg: "253"},
	"gruvbox":    {Accent: "214", Key: "109", Group: "214", Running: "142", Warning: "214", Stopped: "245", Errored: "167", Muted: "243", Label: "246", SelBg: "237", SelFg: "223"},
	"rosepine":   {Accent: "116", Key: "110", Group: "180", Running: "108", Warning: "180", Stopped: "240", Errored: "174", Muted: "240", Label: "245", SelBg: "237", SelFg: "253"},
	"solarized":  {Accent: "37", Key: "33", Group: "136", Running: "100", Warning: "136", Stopped: "240", Errored: "160", Muted: "241", Label: "244", SelBg: "236", SelFg: "254"},
	"monokai":    {Accent: "197", Key: "81", Group: "186", Running: "148", Warning: "186", Stopped: "240", Errored: "208", Muted: "240", Label: "245", SelBg: "237", SelFg: "253"},
	"mono":       {Accent: "250", Key: "250", Group: "250", Running: "250", Warning: "250", Stopped: "241", Errored: "244", Muted: "240", Label: "245", SelBg: "237", SelFg: "253"},
}

Functions

func ApplyTheme added in v0.4.0

func ApplyTheme(name string)

Types

type Engine

type Engine interface {
	List(ctx context.Context) ([]docker.Container, error)
	Logs(ctx context.Context, id string) (<-chan string, error)
	Stats(ctx context.Context, id string) (<-chan docker.Stats, error)
	Start(ctx context.Context, id string) error
	Stop(ctx context.Context, id string) error
	Restart(ctx context.Context, id string) error
	Remove(ctx context.Context, id string) error

	Images(ctx context.Context) ([]docker.Image, error)
	RemoveImage(ctx context.Context, id string) error
	PruneImages(ctx context.Context) (uint64, error)

	Volumes(ctx context.Context) ([]docker.Volume, error)
	RemoveVolume(ctx context.Context, name string) error

	Networks(ctx context.Context) ([]docker.Network, error)
	RemoveNetwork(ctx context.Context, id string) error
}

type Model

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

func New

func New(client Engine) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Theme added in v0.4.0

type Theme struct {
	Accent  lipgloss.Color
	Key     lipgloss.Color
	Group   lipgloss.Color
	Running lipgloss.Color
	Warning lipgloss.Color
	Stopped lipgloss.Color
	Errored lipgloss.Color
	Muted   lipgloss.Color
	Label   lipgloss.Color
	SelBg   lipgloss.Color
	SelFg   lipgloss.Color
}

Jump to

Keyboard shortcuts

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