From 858c07f0b805558b0961514200ffb822dd2248cf Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 27 Dec 2024 02:28:11 -0500 Subject: Force the use of TrueColor everywhere --- internal/ui/misc.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/ui/misc.go (limited to 'internal/ui/misc.go') diff --git a/internal/ui/misc.go b/internal/ui/misc.go new file mode 100644 index 0000000..33092b4 --- /dev/null +++ b/internal/ui/misc.go @@ -0,0 +1,16 @@ +package ui + +import ( + lg "github.com/charmbracelet/lipgloss" + "github.com/muesli/termenv" +) + +func ColorProfile() termenv.Profile { + return termenv.TrueColor +} + +func init() { + r := lg.DefaultRenderer() + r.SetColorProfile(ColorProfile()) + lg.SetDefaultRenderer(r) +} -- cgit v1.2.3