Change summary
ui/components/selector/selector.go | 1 +
ui/styles/styles.go | 6 ++++++
2 files changed, 7 insertions(+)
Detailed changes
@@ -43,6 +43,7 @@ func New(common common.Common, items []IdentifiableItem, delegate ItemDelegate)
itms[i] = item
}
l := list.New(itms, delegate, common.Width, common.Height)
+ l.Styles.NoItems = common.Styles.NoItems.Copy()
s := &Selector{
Model: l,
common: common,
@@ -127,6 +127,8 @@ type Styles struct {
CodeNoContent lipgloss.Style
+ NoItems lipgloss.Style
+
StatusBar lipgloss.Style
StatusBarKey lipgloss.Style
StatusBarValue lipgloss.Style
@@ -418,6 +420,10 @@ func DefaultStyles() *Styles {
MarginLeft(2).
Foreground(lipgloss.Color("242"))
+ s.NoItems = lipgloss.NewStyle().
+ MarginLeft(2).
+ Foreground(lipgloss.Color("242"))
+
s.StatusBar = lipgloss.NewStyle().
Height(1)