From 9a336aff8ef62fb99c361f79c69c2d543559b638 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 26 May 2026 16:02:58 +0200 Subject: [PATCH] add color to title --- border.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/border.go b/border.go index 4b48f7d..7245ad1 100644 --- a/border.go +++ b/border.go @@ -38,7 +38,7 @@ func RenderWithTitle(border lipgloss.Style, title, content string, width, height fillW = 0 } bc := lipgloss.NewStyle().Foreground(border.GetBorderTopForeground()) - topLine := bc.Render("╭ ") + title + bc.Render(" "+strings.Repeat("─", fillW)+"╮") + topLine := bc.Render("╭ ") + bc.Render(title) + bc.Render(" "+strings.Repeat("─", fillW)+"╮") return lipgloss.JoinVertical(lipgloss.Left, topLine, box) }