tuiviews

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Themes = []Theme{
	{Name: "tokman", Primary: "#e94560", Secondary: "#16c79a", Accent: "#f8b500", Bg: "#1a1a2e"},
	{Name: "dark", Primary: "#00ff88", Secondary: "#0088ff", Accent: "#ff0088", Bg: "#000000"},
	{Name: "light", Primary: "#333333", Secondary: "#666666", Accent: "#0066cc", Bg: "#ffffff"},
	{Name: "nord", Primary: "#88c0d0", Secondary: "#81a1c1", Accent: "#ebcb8b", Bg: "#2e3440"},
	{Name: "gruvbox", Primary: "#fabd2f", Secondary: "#8ec07c", Accent: "#fb4934", Bg: "#282828"},
	{Name: "solarized", Primary: "#268bd2", Secondary: "#2aa198", Accent: "#b58900", Bg: "#002b36"},
	{Name: "monokai", Primary: "#f92672", Secondary: "#a6e22e", Accent: "#fd971f", Bg: "#272822"},
	{Name: "dracula", Primary: "#ff79c6", Secondary: "#50fa7b", Accent: "#f1fa8c", Bg: "#282a36"},
	{Name: "catppuccin", Primary: "#cba6f7", Secondary: "#a6e3a1", Accent: "#f9e2af", Bg: "#1e1e2e"},
}

Functions

This section is empty.

Types

type TUIView

type TUIView int
const (
	ViewOverview TUIView = iota
	ViewModels
	ViewDaily
	ViewStats
)

type TUIViewEngine

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

func NewTUIViewEngine

func NewTUIViewEngine() *TUIViewEngine

func (*TUIViewEngine) GetCurrentView

func (e *TUIViewEngine) GetCurrentView() TUIView

func (*TUIViewEngine) GetTheme

func (e *TUIViewEngine) GetTheme() Theme

func (*TUIViewEngine) GetThemes

func (e *TUIViewEngine) GetThemes() []Theme

func (*TUIViewEngine) RenderDaily

func (e *TUIViewEngine) RenderDaily(daily []map[string]interface{}) string

func (*TUIViewEngine) RenderModels

func (e *TUIViewEngine) RenderModels(models []map[string]interface{}) string

func (*TUIViewEngine) RenderOverview

func (e *TUIViewEngine) RenderOverview(stats map[string]interface{}) string

func (*TUIViewEngine) RenderStats

func (e *TUIViewEngine) RenderStats() string

func (*TUIViewEngine) SwitchTheme

func (e *TUIViewEngine) SwitchTheme(index int)

func (*TUIViewEngine) SwitchView

func (e *TUIViewEngine) SwitchView(view TUIView)

type Theme

type Theme struct {
	Name      string
	Primary   string
	Secondary string
	Accent    string
	Bg        string
}

Jump to

Keyboard shortcuts

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