{"modulePath":"github.com/syncoboard/syncoboard-cli","version":"v0.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ui\n\n## Constants\n\n```go\nconst (\n\tColorObsidianNight = lipgloss.Color(\"#0B0E14\") // Background\n\tColorVoidGrey      = lipgloss.Color(\"#161B22\") // Surface\n\tColorNeonPulse     = lipgloss.Color(\"#00F5FF\") // Accent\n\tColorGitGreen      = lipgloss.Color(\"#2EA043\") // Status\n\tColorSyntaxGrey    = lipgloss.Color(\"#8B949E\") // Typography\n)\n```\nTheme Colors - Project Visual Identity\n\n## Variables\n\n```go\nvar (\n\tAppStyle = lipgloss.NewStyle().\n\t\t\tForeground(ColorSyntaxGrey).\n\t\t\tBackground(ColorObsidianNight)\n\n\t// A clean, solid background container without rounded borders,\n\t// spanning across the UI, mimicking a modern IDE's surface area.\n\tTopSectionStyle = lipgloss.NewStyle().\n\t\t\tBackground(ColorVoidGrey)\n\n\t// Column separator within the top section\n\tColumnBorderStyle = lipgloss.NewStyle().\n\t\t\t\tBorderStyle(lipgloss.NormalBorder()).\n\t\t\t\tBorderForeground(lipgloss.Color(\"#30363D\")).\n\t\t\t\tBorderLeft(true).\n\t\t\t\tBackground(ColorVoidGrey)\n\n\tTitleStyle = lipgloss.NewStyle().\n\t\t\tBold(true).\n\t\t\tForeground(ColorNeonPulse).\n\t\t\tBackground(ColorVoidGrey).\n\t\t\tPaddingBottom(1) // Add breathing room\n\n\tItemStyle = lipgloss.NewStyle().\n\t\t\tForeground(ColorSyntaxGrey).\n\t\t\tBackground(ColorVoidGrey)\n\n\tHighlightStyle = lipgloss.NewStyle().\n\t\t\tForeground(ColorNeonPulse).\n\t\t\tBackground(ColorVoidGrey)\n\n\t// Output area feels like an embedded terminal pane without heavy borders\n\tOutputBoxStyle = lipgloss.NewStyle().\n\t\t\tBackground(ColorObsidianNight)\n\n\t// Input styles\n\tPromptStyle    = lipgloss.NewStyle().Foreground(ColorNeonPulse).Bold(true).Background(ColorVoidGrey)\n\tPathStyle      = lipgloss.NewStyle().Foreground(ColorSyntaxGrey).Italic(true).Background(ColorVoidGrey)\n\tInputLineStyle = lipgloss.NewStyle().\n\t\t\tBackground(ColorVoidGrey).\n\t\t\tHeight(1).\n\t\t\tPadding(0, 1)\n\n\t// Header/Status Bar\n\tHeaderStyle = lipgloss.NewStyle().\n\t\t\tBackground(ColorVoidGrey).\n\t\t\tForeground(ColorSyntaxGrey).\n\t\t\tBorder(lipgloss.NormalBorder(), false, false, true, false).\n\t\t\tBorderForeground(lipgloss.Color(\"#30363D\")).\n\t\t\tPadding(0, 1)\n\n\tLogoStyle = lipgloss.NewStyle().\n\t\t\tForeground(ColorNeonPulse).\n\t\t\tBold(true).\n\t\t\tBackground(ColorVoidGrey)\n)\n```\nShared Styles\n\n```go\nvar ApiClient *api.Client\n```\n\n## Functions\n\n```go\nfunc SaveConfig(cfg Config) error\n```\n\n## Types\n\n```go\ntype AudioPlayer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAudioPlayer() (*AudioPlayer, error)\n```\n\n```go\nfunc (a *AudioPlayer) Close()\n```\n\n```go\nfunc (a *AudioPlayer) PlayTrack(track *webrtc.TrackRemote) error\n```\n\n```go\ntype AuthSuccessMsg struct {\n\tToken string\n}\n```\n\n```go\ntype CdResultMsg struct {\n\tPath string\n\tType string\n\tID   string\n}\n```\n\n```go\ntype Config struct {\n\tToken string `json:\"token\"`\n}\n```\n\n```go\nfunc LoadConfig() Config\n```\n\n```go\ntype Model struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc InitialModel() Model\n```\n\n```go\nfunc (m Model) Init() tea.Cmd\n```\n\n```go\nfunc (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)\n```\nUpdate the Model's Update method to handle these messages\n\n```go\nfunc (m Model) View() string\n```\n\n```go\ntype OutputMsg struct {\n\tLines []string\n}\n```\n\n```go\ntype StartVoiceCallMsg struct {\n\tBoardID string\n}\n```\n\n```go\ntype TabCompletionMsg struct {\n\tInput string\n}\n```\n\n```go\ntype TaskDetailsMsg struct {\n\tDetails string\n\tErr     error\n}\n```\n\n```go\ntype TasksMsg struct {\n\tTasks []string\n\tErr   error\n}\n```\n\n```go\ntype UpdateLastOnlineMsg struct {\n\tErr error\n}\n```\n\n```go\ntype VoiceCallState struct {\n\tIsActive   bool\n\tIsMuted    bool\n\tPeerCount  int\n\tError      error\n\tStatusText string\n}\n```\n\n```go\ntype VoiceCallUpdateMsg struct {\n\tState VoiceCallState\n}\n```\n\n```go\ntype VoiceEngine struct {\n\tStateChan chan VoiceCallState\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewVoiceEngine(boardID string, wsURL string) *VoiceEngine\n```\n\n```go\nfunc (ve *VoiceEngine) Start() error\n```\n\n```go\nfunc (ve *VoiceEngine) Stop()\n```\n\n```go\nfunc (ve *VoiceEngine) ToggleMute()\n```\n\n```go\ntype WorkspacesMsg struct {\n\tNames []string\n\tErr   error\n}\n```\n\n","path":"github.com/syncoboard/syncoboard-cli/ui","name":"ui","synopsis":"","isRedistributable":true}
