Skip to content

Commit

Permalink
Created new styles file to store all the variables related to styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariasmn committed May 31, 2022
1 parent b4d9331 commit 2ac14ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/tui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ func userToItem(users []userparser.User) []list.Item {
}

return items
}
}
7 changes: 7 additions & 0 deletions internal/tui/styles.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package tui

import "github.com/charmbracelet/lipgloss"

var (
docStyle = lipgloss.NewStyle().Margin(1, 2)
)
1 change: 0 additions & 1 deletion internal/tui/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/charmbracelet/lipgloss"
)

var docStyle = lipgloss.NewStyle().Margin(1, 2)
func (bu BubbleUser) View() string {
return docStyle.Render(bu.list.View())
}

0 comments on commit 2ac14ec

Please sign in to comment.