Skip to content

Commit

Permalink
Added margin top and changed filter colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariasmn committed Jul 24, 2022
1 parent 0f6a614 commit e6f62bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/tui/common/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "github.com/charmbracelet/lipgloss"
var (
ListStyle = lipgloss.NewStyle().
Width(35).
MarginTop(1).
PaddingRight(3).
MarginRight(3).
Border(lipgloss.RoundedBorder())
Expand Down
2 changes: 2 additions & 0 deletions internal/tui/group/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func (bg BubbleGroup) View() string {

func (bg BubbleGroup) listView() string {
bg.list.Styles.Title = common.ListColorStyle
bg.list.Styles.FilterPrompt.Foreground(common.ListColorStyle.GetBackground())
bg.list.Styles.FilterCursor.Foreground(common.ListColorStyle.GetBackground())

return common.ListStyle.Render(bg.list.View())
}
Expand Down
2 changes: 2 additions & 0 deletions internal/tui/user/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func (bu BubbleUser) View() string {

func (bu BubbleUser) listView() string {
bu.list.Styles.Title = common.ListColorStyle
bu.list.Styles.FilterPrompt.Foreground(common.ListColorStyle.GetBackground())
bu.list.Styles.FilterCursor.Foreground(common.ListColorStyle.GetBackground())

return common.ListStyle.Render(bu.list.View())
}
Expand Down

0 comments on commit e6f62bc

Please sign in to comment.