diff --git a/go.mod b/go.mod index a938f3d..42fe934 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/charmbracelet/bubbles v0.18.0 github.com/charmbracelet/bubbletea v0.26.4 github.com/charmbracelet/glamour v0.7.0 - github.com/charmbracelet/lipgloss v0.10.0 + github.com/charmbracelet/lipgloss v0.11.0 github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.9.0 go.etcd.io/bbolt v1.3.10 diff --git a/go.sum b/go.sum index 2f22072..5463823 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8= -github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo= github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU= github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= github.com/alecthomas/chroma/v2 v2.13.0 h1:VP72+99Fb2zEcYM0MeaWJmV+xQvz5v5cxRHd+ooU1lI= @@ -16,8 +14,8 @@ github.com/charmbracelet/bubbletea v0.26.4 h1:2gDkkzLZaTjMl/dQBpNVtnvcCxsh/FCkim github.com/charmbracelet/bubbletea v0.26.4/go.mod h1:P+r+RRA5qtI1DOHNFn0otoNwB4rn+zNAzSj/EXz6xU0= github.com/charmbracelet/glamour v0.7.0 h1:2BtKGZ4iVJCDfMF229EzbeR1QRKLWztO9dMtjmqZSng= github.com/charmbracelet/glamour v0.7.0/go.mod h1:jUMh5MeihljJPQbJ/wf4ldw2+yBP59+ctV36jASy7ps= -github.com/charmbracelet/lipgloss v0.10.0 h1:KWeXFSexGcfahHX+54URiZGkBFazf70JNMtwg/AFW3s= -github.com/charmbracelet/lipgloss v0.10.0/go.mod h1:Wig9DSfvANsxqkRsqj6x87irdy123SR4dOXlKa91ciE= +github.com/charmbracelet/lipgloss v0.11.0 h1:UoAcbQ6Qml8hDwSWs0Y1cB5TEQuZkDPH/ZqwWWYTG4g= +github.com/charmbracelet/lipgloss v0.11.0/go.mod h1:1UdRTH9gYgpcdNN5oBtjbu/IzNKtzVtb7sqN1t9LNn8= github.com/charmbracelet/x/ansi v0.1.2 h1:6+LR39uG8DE6zAmbu023YlqjJHkYXDF1z36ZwzO4xZY= github.com/charmbracelet/x/ansi v0.1.2/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= github.com/charmbracelet/x/input v0.1.0 h1:TEsGSfZYQyOtp+STIjyBq6tpRaorH0qpwZUj8DavAhQ= diff --git a/pkg/ui/pager/renderer.go b/pkg/ui/pager/renderer.go index 950c60d..f37bc3c 100644 --- a/pkg/ui/pager/renderer.go +++ b/pkg/ui/pager/renderer.go @@ -24,7 +24,7 @@ var ( infoStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Left = "$" - return pagerTitleStyle.Copy().BorderStyle(b) + return pagerTitleStyle.BorderStyle(b) }() ) diff --git a/pkg/ui/statusTable.go b/pkg/ui/statusTable.go index 893f2f2..9f77db6 100644 --- a/pkg/ui/statusTable.go +++ b/pkg/ui/statusTable.go @@ -103,7 +103,7 @@ func RenderTable(data map[string]string, refreshLastEditedTime bool) error { re := lipgloss.NewRenderer(os.Stdout) baseStyle := re.NewStyle().Padding(0, 1) - headerStyle := baseStyle.Copy().Foreground(lipgloss.Color("252")).Bold(true) + headerStyle := baseStyle.Foreground(lipgloss.Color("252")).Bold(true) // selectedStyle := baseStyle.Copy().Foreground(lipgloss.Color("#01BE85")).Background(lipgloss.Color("#00432F")) statusColors := map[string]lipgloss.Color{ "Idea": lipgloss.Color("#FF87D7"), @@ -129,10 +129,10 @@ func RenderTable(data map[string]string, refreshLastEditedTime bool) error { } color, ok := statusColors[fmt.Sprint(tableData[row-1][0])] if ok { - return baseStyle.Copy().Foreground(color) + return baseStyle.Foreground(color) } color = statusColors["Default"] - return baseStyle.Copy().Foreground(color) + return baseStyle.Foreground(color) }) fmt.Println(t) return nil