basic tabs

This commit is contained in:
Erik Winter 2023-12-23 12:10:38 +01:00
parent 9f82044171
commit 677b794e0d
1 changed files with 0 additions and 10 deletions

View File

@ -21,9 +21,7 @@ var (
BorderForeground(colorHighLightForeGround).
Foreground(colorNormalForeground).
Padding(0, 1).
Align(lipgloss.Center).
Border(lipgloss.NormalBorder(), true)
tabPaneStyle = windowStyle.Copy().UnsetBorderTop()
)
func New(conf Config) (*tea.Program, error) {
@ -104,14 +102,6 @@ func (m baseModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, tea.Batch(cmds...)
}
func tabBorderWithBottom(left, middle, right string) lipgloss.Border {
border := lipgloss.NormalBorder()
border.BottomLeft = left
border.Bottom = middle
border.BottomRight = right
return border
}
func (m *baseModel) Log(msg string) {
m.logContent = fmt.Sprintf("%s\n%s", m.logContent, msg)
m.logViewport.SetContent(m.logContent)