basic tabs
This commit is contained in:
parent
9f82044171
commit
677b794e0d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue