ui

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorObsidianNight = lipgloss.Color("#0B0E14") // Background
	ColorVoidGrey      = lipgloss.Color("#161B22") // Surface
	ColorNeonPulse     = lipgloss.Color("#00F5FF") // Accent
	ColorGitGreen      = lipgloss.Color("#2EA043") // Status
	ColorSyntaxGrey    = lipgloss.Color("#8B949E") // Typography
)

Theme Colors - Project Visual Identity

Variables

View Source
var (
	AppStyle = lipgloss.NewStyle().
				Foreground(ColorSyntaxGrey).
				Background(ColorObsidianNight)

	// A clean, solid background container without rounded borders,
	// spanning across the UI, mimicking a modern IDE's surface area.
	TopSectionStyle = lipgloss.NewStyle().
					Background(ColorVoidGrey)

	// Column separator within the top section
	ColumnBorderStyle = lipgloss.NewStyle().
						BorderStyle(lipgloss.NormalBorder()).
						BorderForeground(lipgloss.Color("#30363D")).
						BorderLeft(true).
						Background(ColorVoidGrey)

	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorNeonPulse).
				Background(ColorVoidGrey).
				PaddingBottom(1) // Add breathing room

	ItemStyle = lipgloss.NewStyle().
				Foreground(ColorSyntaxGrey).
				Background(ColorVoidGrey)

	HighlightStyle = lipgloss.NewStyle().
					Foreground(ColorNeonPulse).
					Background(ColorVoidGrey)

	// Output area feels like an embedded terminal pane without heavy borders
	OutputBoxStyle = lipgloss.NewStyle().
					Background(ColorObsidianNight)

	// Input styles
	PromptStyle    = lipgloss.NewStyle().Foreground(ColorNeonPulse).Bold(true).Background(ColorVoidGrey)
	PathStyle      = lipgloss.NewStyle().Foreground(ColorSyntaxGrey).Italic(true).Background(ColorVoidGrey)
	InputLineStyle = lipgloss.NewStyle().
					Background(ColorVoidGrey).
					Height(1).
					Padding(0, 1)

	// Header/Status Bar
	HeaderStyle = lipgloss.NewStyle().
				Background(ColorVoidGrey).
				Foreground(ColorSyntaxGrey).
				Border(lipgloss.NormalBorder(), false, false, true, false).
				BorderForeground(lipgloss.Color("#30363D")).
				Padding(0, 1)

	LogoStyle = lipgloss.NewStyle().
				Foreground(ColorNeonPulse).
				Bold(true).
				Background(ColorVoidGrey)
)

Shared Styles

View Source
var ApiClient *api.Client

Functions

func SaveConfig

func SaveConfig(cfg Config) error

Types

type AudioPlayer added in v0.0.4

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

func NewAudioPlayer added in v0.0.4

func NewAudioPlayer() (*AudioPlayer, error)

func (*AudioPlayer) Close added in v0.0.4

func (a *AudioPlayer) Close()

func (*AudioPlayer) PlayTrack added in v0.0.4

func (a *AudioPlayer) PlayTrack(track *webrtc.TrackRemote) error

type AuthSuccessMsg

type AuthSuccessMsg struct {
	Token string
}

type CdResultMsg

type CdResultMsg struct {
	Path string
	Type string
	ID   string
}

type Config

type Config struct {
	Token string `json:"token"`
}

func LoadConfig

func LoadConfig() Config

type Model

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

func InitialModel

func InitialModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

Update the Model's Update method to handle these messages

func (Model) View

func (m Model) View() string

type OutputMsg

type OutputMsg struct {
	Lines []string
}

type StartVoiceCallMsg added in v0.0.4

type StartVoiceCallMsg struct {
	BoardID string
}

type TabCompletionMsg

type TabCompletionMsg struct {
	Input string
}

type TaskDetailsMsg

type TaskDetailsMsg struct {
	Details string
	Err     error
}

type TasksMsg

type TasksMsg struct {
	Tasks []string
	Err   error
}

type UpdateLastOnlineMsg

type UpdateLastOnlineMsg struct {
	Err error
}

type VoiceCallState added in v0.0.4

type VoiceCallState struct {
	IsActive   bool
	IsMuted    bool
	PeerCount  int
	Error      error
	StatusText string
}

type VoiceCallUpdateMsg added in v0.0.4

type VoiceCallUpdateMsg struct {
	State VoiceCallState
}

type VoiceEngine added in v0.0.4

type VoiceEngine struct {
	StateChan chan VoiceCallState
	// contains filtered or unexported fields
}

func NewVoiceEngine added in v0.0.4

func NewVoiceEngine(boardID string, wsURL string) *VoiceEngine

func (*VoiceEngine) Start added in v0.0.4

func (ve *VoiceEngine) Start() error

func (*VoiceEngine) Stop added in v0.0.4

func (ve *VoiceEngine) Stop()

func (*VoiceEngine) ToggleMute added in v0.0.4

func (ve *VoiceEngine) ToggleMute()

type WorkspacesMsg

type WorkspacesMsg struct {
	Names []string
	Err   error
}

Jump to

Keyboard shortcuts

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