copied the dashboard and made a keybinding to change back and forth between them; ready to turn dashboard2 into a boardview dashboard

This commit is contained in:
viljarb
2026-03-02 19:53:42 +01:00
parent cb10aeff6b
commit 1d5b7e0860
13 changed files with 1651 additions and 17 deletions

View File

@@ -0,0 +1,32 @@
package dashboard2
import (
"github.com/LazyBachelor/LazyPM/pkg/tui/styles"
"github.com/charmbracelet/lipgloss"
)
type Header struct {
title string
}
func NewHeader(title string) Header {
return Header{
title: title,
}
}
func (h Header) View(width int) string {
title := styles.HeaderTitleStyle.Render(h.title)
return lipgloss.PlaceHorizontal(
width,
lipgloss.Left,
title,
lipgloss.WithWhitespaceChars("─"),
lipgloss.WithWhitespaceForeground(styles.Primary),
)
}
func (h Header) Height() int {
return 1
}