Documentation
¶
Index ¶
- type Colors
- type Config
- type Model
- func (m *Model) CalculateSpendingBreakdown() *tree.Tree
- func (m *Model) SetAccounts(assets map[int64]*lm.Asset, plaidAccounts map[int64]*lm.PlaidAccount)
- func (m *Model) SetCategories(categories map[int64]*lm.Category)
- func (m *Model) SetCurrency(currency string)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetTransactions(transactions []*lm.Transaction)
- func (m *Model) SetUser(user *lm.User)
- func (m *Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m *Model) UpdateViewport()
- func (m *Model) View() string
- type Styles
- type Summary
- type TransactionMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colors ¶ added in v0.21.0
type Colors struct {
Income lipgloss.Color
Expense lipgloss.Color
TreeRoot lipgloss.Color
AssetType lipgloss.Color
Account lipgloss.Color
SectionHeader lipgloss.Color
}
Colors represents theme colors for the overview.
type Config ¶
type Config struct {
ShowUserInfo bool
// Colors can be provided to customize the theme
Colors *Colors
}
Config holds the configuration for the overview model.
type Model ¶
type Model struct {
Styles Styles
Viewport viewport.Model
// contains filtered or unexported fields
}
Model deines the state for the overview widget for LunchTUI.
func (*Model) CalculateSpendingBreakdown ¶
func (*Model) SetAccounts ¶
func (*Model) SetCurrency ¶
func (*Model) SetTransactions ¶
func (m *Model) SetTransactions(transactions []*lm.Transaction)
func (*Model) UpdateViewport ¶
func (m *Model) UpdateViewport()
type Styles ¶
type Styles struct {
IncomeStyle lipgloss.Style
SpentStyle lipgloss.Style
WarningStyle lipgloss.Style // For non-zero pending/unreviewed counts
TreeRootStyle lipgloss.Style
AssetTypeStyle lipgloss.Style
AccountStyle lipgloss.Style
SummaryStyle lipgloss.Style
// SectionHeaderStyle is used for section headers in the overview
SectionHeaderStyle lipgloss.Style
}
type TransactionMetrics ¶
type TransactionMetrics struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.