Documentation
¶
Overview ¶
Package statusbar provides a statusbar bubble which can render four different status sections
Index ¶
Constants ¶
View Source
const Height = 1
Height represents the height of the statusbar.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorConfig ¶
type ColorConfig struct {
Foreground lipgloss.AdaptiveColor
Background lipgloss.AdaptiveColor
}
ColorConfig represents the color configuration for a column.
type Model ¶
type Model struct {
Width int
Height int
FirstColumn string
SecondColumn string
ThirdColumn string
FourthColumn string
FirstColumnColors ColorConfig
SecondColumnColors ColorConfig
ThirdColumnColors ColorConfig
FourthColumnColors ColorConfig
}
Model represents the properties of the statusbar.
func New ¶
func New(firstColumnColors, secondColumnColors, thirdColumnColors, fourthColumnColors ColorConfig) Model
New creates a new instance of the statusbar.
func (*Model) SetColors ¶
func (m *Model) SetColors(firstColumnColors, secondColumnColors, thirdColumnColors, fourthColumnColors ColorConfig)
SetColors sets the colors of the 4 columns.
func (*Model) SetContent ¶
SetContent sets the content of the statusbar.
Click to show internal directories.
Click to hide internal directories.