diff options
Diffstat (limited to 'internal/preview/preview.go')
-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)) |