From e6f62bcc25bc96ce73a725379100ce8f15248d8b Mon Sep 17 00:00:00 2001 From: Ismael Arias Date: Sun, 24 Jul 2022 18:00:05 +0200 Subject: [PATCH] Added margin top and changed filter colors. --- internal/tui/common/styles.go | 1 + internal/tui/group/view.go | 2 ++ internal/tui/user/view.go | 2 ++ 3 files changed, 5 insertions(+) diff --git a/internal/tui/common/styles.go b/internal/tui/common/styles.go index 2d1055e..6b57cb9 100644 --- a/internal/tui/common/styles.go +++ b/internal/tui/common/styles.go @@ -5,6 +5,7 @@ import "github.com/charmbracelet/lipgloss" var ( ListStyle = lipgloss.NewStyle(). Width(35). + MarginTop(1). PaddingRight(3). MarginRight(3). Border(lipgloss.RoundedBorder()) diff --git a/internal/tui/group/view.go b/internal/tui/group/view.go index 7e4b0a6..02a77cc 100644 --- a/internal/tui/group/view.go +++ b/internal/tui/group/view.go @@ -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()) } diff --git a/internal/tui/user/view.go b/internal/tui/user/view.go index 8a833ca..60db378 100644 --- a/internal/tui/user/view.go +++ b/internal/tui/user/view.go @@ -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()) }