summaryrefslogtreecommitdiff
path: root/internal/ui
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 02:28:11 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 02:28:11 -0500
commit858c07f0b805558b0961514200ffb822dd2248cf (patch)
tree0270faa8ed1d60174b02ce871ce1e78ae66ca074 /internal/ui
parentf6bda0ee1825c43ecf17fa752cd4c9ac6dde8949 (diff)
Force the use of TrueColor everywhere
Diffstat (limited to 'internal/ui')
-rw-r--r--internal/ui/misc.go16
1 files changed, 16 insertions, 0 deletions
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)
+}