(Feat): Initial Commit, Termdoku

This commit is contained in:
2025-11-25 21:09:27 +00:00
commit f6933958e2
40 changed files with 5755 additions and 0 deletions

20
internal/ui/example.go Normal file
View File

@@ -0,0 +1,20 @@
package ui
import (
"strings"
"termdoku/internal/theme"
)
// ExampleRenderSample returns a sample rendering string for docs/tests.
func ExampleRenderSample() string {
_th := theme.Darcula()
styles := BuildStyles(_th)
var b strings.Builder
b.WriteString(styles.CellSelected.Render("5"))
b.WriteString(" ")
b.WriteString(styles.CellDuplicate.Render("5"))
b.WriteString(" ")
b.WriteString(styles.CellConflict.Render("3"))
b.WriteString("\n")
return styles.App.Render(b.String())
}