(Feat): Initial Commit, Termdoku
This commit is contained in:
20
internal/ui/example.go
Normal file
20
internal/ui/example.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user