Documentation ¶
Index ¶
- Constants
- Variables
- func Footer(width int) string
- func JoinLines(texts ...string) string
- func Line(width int, cells ...Cell) string
- func NewStyle(fg string, bg string, bold bool, italic bool) func(string) string
- func Truncate(old string, n int) string
- type Cell
- type HelpModel
- type HelpMsg
- type TextAlign
- type TransModel
- type WordMsg
Constants ¶
View Source
const (
InputTextColor = "#ff5faf"
)
Variables ¶
View Source
var ( StyleLogo = NewStyle("#ffc27d", "#f37329", true, false) StyleHelp = NewStyle("#4e4e4e", "", true, false) StyleMean = NewStyle("#ffffff", "", false, false) StylePart = NewStyle("#66C2CD", "", false, true) StylePhrasesText = NewStyle("#B9BFCA", "", false, false) StyleSentencesText = NewStyle("#B9BFCA", "", false, false) StyleGuessText = NewStyle("#D290E4", "", false, false) StyleGuessTextSelect = NewStyle("#ff5faf", "", true, false) StyleKey = NewStyle("#71BEF2", "", true, false) StyleKeyHelp = NewStyle("#B9BFCA", "", false, false) StyleSuccess = NewStyle("#67f86f", "", true, false) Stylefail = NewStyle("#fd6f59", "", true, false) StyleWordCount = NewStyle("#aeaeae", "", true, false) )
Functions ¶
Types ¶
type TransModel ¶
func (TransModel) View ¶
func (m TransModel) View() string
Click to show internal directories.
Click to hide internal directories.