diff --git a/tui/helper.go b/tui/helper.go new file mode 100644 index 0000000..d3e9ab5 --- /dev/null +++ b/tui/helper.go @@ -0,0 +1,12 @@ +package tui + +import ( + "fmt" + + "github.com/gdamore/tcell/v2" +) + +func hexStringFromColor(c tcell.Color) string { + r, g, b := c.RGB() + return fmt.Sprintf("[#%02x%02x%02x]", r, g, b) +}