Skip to content

Commit

Permalink
chore: update lipgloss proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 15, 2024
1 parent 1d28cd4 commit 5648cc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func (c *teaContext) SupportsEnhancedKeyboard() bool {
return c.kittyFlags >= 0
}

func (c *teaContext) NewStyle() lipgloss.Style {
return lipgloss.NewStyle().ColorProfile(c.profile).HasLightBackground(c.hasLightBg)
func (c *teaContext) NewStyle() (s lipgloss.Style) {
return s.ColorProfile(c.profile).HasLightBackground(c.hasLightBg)
}

func (c *teaContext) ColorProfile() lipgloss.Profile {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/charmbracelet/bubbletea
go 1.18

require (
github.com/charmbracelet/lipgloss v0.10.1-0.20240514172355-88ecbb398449
github.com/charmbracelet/lipgloss v0.10.1-0.20240515201529-1969fb54fefe
github.com/charmbracelet/x/ansi v0.1.1
github.com/charmbracelet/x/input v0.1.0
github.com/charmbracelet/x/term v0.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/charmbracelet/lipgloss v0.10.1-0.20240514172133-9a1d854f90dd h1:y23y/
github.com/charmbracelet/lipgloss v0.10.1-0.20240514172133-9a1d854f90dd/go.mod h1:/WJOlugg8bddqSP52FFiGXWVIfXsO+/+KzOGAT7opnw=
github.com/charmbracelet/lipgloss v0.10.1-0.20240514172355-88ecbb398449 h1:jy8zvXRALm2v8aK4ivo4m1+/E1/p8nejp5hWRudx2VA=
github.com/charmbracelet/lipgloss v0.10.1-0.20240514172355-88ecbb398449/go.mod h1:/WJOlugg8bddqSP52FFiGXWVIfXsO+/+KzOGAT7opnw=
github.com/charmbracelet/lipgloss v0.10.1-0.20240515201529-1969fb54fefe h1:2SKkDenRBzWlqbqnk7cseOretWPktJNddvQkvORQxWo=
github.com/charmbracelet/lipgloss v0.10.1-0.20240515201529-1969fb54fefe/go.mod h1:/WJOlugg8bddqSP52FFiGXWVIfXsO+/+KzOGAT7opnw=
github.com/charmbracelet/x/ansi v0.1.0 h1:o4NbQQCoVgbLpD5RC1cI687baoLwrLZyCOTGlF0gne4=
github.com/charmbracelet/x/ansi v0.1.0/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw=
github.com/charmbracelet/x/ansi v0.1.1 h1:CGAduulr6egay/YVbGc8Hsu8deMg1xZ/bkaXTPi1JDk=
Expand Down

0 comments on commit 5648cc2

Please sign in to comment.