Documentation
¶
Index ¶
- Constants
- Variables
- func SaveConfig(cfg Config) error
- type AudioPlayer
- type AuthSuccessMsg
- type CdResultMsg
- type Config
- type Model
- type OutputMsg
- type StartVoiceCallMsg
- type TabCompletionMsg
- type TaskDetailsMsg
- type TasksMsg
- type UpdateLastOnlineMsg
- type VoiceCallState
- type VoiceCallUpdateMsg
- type VoiceEngine
- type WorkspacesMsg
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 ¶
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 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
type StartVoiceCallMsg ¶ added in v0.0.4
type StartVoiceCallMsg struct {
BoardID string
}
type TabCompletionMsg ¶
type TabCompletionMsg struct {
Input string
}
type TaskDetailsMsg ¶
type UpdateLastOnlineMsg ¶
type UpdateLastOnlineMsg struct {
Err error
}
type VoiceCallState ¶ added in v0.0.4
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 ¶
Click to show internal directories.
Click to hide internal directories.