diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2025-01-16 00:20:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 00:20:12 -0500 |
commit | 7d2afe1ca176d0eb76f65523ed7ebcbca702d0c1 (patch) | |
tree | 148d0f8da77686ff7d713d8a233b3545b7994e2a /internal/ui/misc.go | |
parent | f438213c56fb072bbd3dc1aed0fd7e901181a7b9 (diff) |
Central UI (#26)
* migrate to urfave/cli V3
* Remove slider background
* Force the use of TrueColor everywhere
* All ui info in one location
* Fix BinaryFill Example
* Make unfocused tabs more faint
* Fix color input width
* Ctrl-c overrides color input and quits termpicker
* docs: remove redundant comment
* fix: refactor picker View()
Diffstat (limited to 'internal/ui/misc.go')
-rw-r--r-- | internal/ui/misc.go | 16 |
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) +} |