Skip to content

Commit

Permalink
update style (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Aug 20, 2023
1 parent 8fd2e06 commit bc201d2
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions ui/hey/style/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package style
import "github.com/charmbracelet/lipgloss"

const (
White = "#ffffff"
FocusedColor = "#1DB954"
BgColor = "#191414"
White = "#ffffff"
HighlightColor = "#1DB954"
BgColor = "#191414"
)

func ChatNomal(width, height int) lipgloss.Style {
Expand All @@ -20,7 +20,7 @@ func ChatFocused(width, height int) lipgloss.Style {
Width(width).
Height(height).
BorderStyle(lipgloss.ThickBorder()).
BorderForeground(lipgloss.Color(FocusedColor))
BorderForeground(lipgloss.Color(HighlightColor))
}

func RecommendationNormal(width, height int) lipgloss.Style {
Expand All @@ -36,6 +36,23 @@ func RecommendationFocused(width, height int) lipgloss.Style {
Width(width).
Height(height).
BorderStyle(lipgloss.ThickBorder()).
BorderForeground(lipgloss.Color(FocusedColor)).
BorderForeground(lipgloss.Color(HighlightColor)).
Background(lipgloss.AdaptiveColor{Dark: BgColor, Light: BgColor})
}

func BotChat(width int) lipgloss.Style {
return lipgloss.NewStyle().
AlignHorizontal(lipgloss.Right).
Width(width)
}

func UserChat() lipgloss.Style {
return lipgloss.NewStyle().
AlignHorizontal(lipgloss.Left).
Foreground(lipgloss.Color(HighlightColor))
}

func TextInput() lipgloss.Style {
return lipgloss.NewStyle().
AlignHorizontal(lipgloss.Left)
}

0 comments on commit bc201d2

Please sign in to comment.