v0.1.1 true color extracted to a standalone package, lut256 lazy build

This commit is contained in:
2026-07-15 07:53:38 -04:00
parent aa22225c61
commit 9853ac0270
33 changed files with 480 additions and 745 deletions
+7 -5
View File
@@ -1,6 +1,7 @@
package tui
import (
"github.com/lixenwraith/color"
"github.com/lixenwraith/terminal"
)
@@ -9,10 +10,10 @@ type ModalOpts struct {
Title string
Hint string // Right-aligned hint text
Border LineType
BorderFg terminal.RGB
TitleFg terminal.RGB
HintFg terminal.RGB
Bg terminal.RGB
BorderFg color.RGB
TitleFg color.RGB
HintFg color.RGB
Bg color.RGB
}
// Modal fills region with background, draws border with title/hint, returns content region
@@ -63,4 +64,5 @@ func (r Region) Modal(opts ModalOpts) Region {
// Return content region
return r.Sub(1, 1, r.W-2, r.H-2)
}
}