From 65df16238d97585a45e216e19324df9113a959e1 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 14 May 2021 22:25:51 -0400 Subject: [PATCH] Fix coloring glitch in Glamour example --- examples/glamour/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/glamour/main.go b/examples/glamour/main.go index 18f3fce..9385604 100644 --- a/examples/glamour/main.go +++ b/examples/glamour/main.go @@ -7,7 +7,7 @@ import ( "github.com/charmbracelet/bubbles/viewport" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/glamour" - "github.com/muesli/termenv" + "github.com/charmbracelet/lipgloss" ) const content = ` @@ -48,7 +48,7 @@ Some famous people that have eaten here lately: Bon appétit! ` -var term = termenv.ColorProfile() +var helpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("241")).Render type example struct { viewport viewport.Model @@ -103,7 +103,7 @@ func (e example) View() string { } func (e example) helpView() string { - return termenv.String("\n ↑/↓: Navigate • q: Quit\n").Foreground(term.Color("241")).String() + return helpStyle("\n ↑/↓: Navigate • q: Quit\n") } func main() {