diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-11-24 13:04:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-24 13:04:11 -0500 |
commit | 218931d6ba6f33f023aa9dc921d0aa0aca5a9f12 (patch) | |
tree | 92089835c75f36318c81253d67cf89b18b75f774 /internal/preview | |
parent | ef65550765215416195ad1a456408db781e752fd (diff) |
feat: add help at the bottom (#5)
* Attemp at using goreleaser
* Fix syntax error in .goreleaser.yml
* fix: Check roadmap feature for clipboard (README)
* feat: add help menu at the bottom (#4)
* MVP for a help menu
* fix: commented code is evil
Diffstat (limited to 'internal/preview')
-rw-r--r-- | internal/preview/preview.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/preview/preview.go b/internal/preview/preview.go index ef4c9f0..eb7d344 100644 --- a/internal/preview/preview.go +++ b/internal/preview/preview.go @@ -14,9 +14,7 @@ type Model struct { hex string } -func (m *Model) Color(hex string) { - m.hex = hex -} +func (m *Model) Color(hex string) { m.hex = hex } func New(hex string) *Model { return &Model{ @@ -25,13 +23,9 @@ func New(hex string) *Model { } } -func (m Model) Init() tea.Cmd { - return nil -} +func (m Model) Init() tea.Cmd { return nil } -func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { - return m, nil -} +func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil } func (m Model) View() string { style := lipgloss.NewStyle().Foreground(lipgloss.Color(m.hex)) |