Documentation
¶
Index ¶
- Constants
- func RenderKeyboardHeatmap(theme config.Theme, termWidth int) string
- func RenderLogo(theme config.Theme) string
- func RenderMenuView(timeModes []int, selectedModeIdx int, currentMode TestMode, ...) string
- func RenderResultsView(t *stats.Tracker, theme config.Theme, termWidth int) string
- func RenderTestView(t *stats.Tracker, theme config.Theme, showKeys bool, activeRune rune, ...) string
- func RenderVisualKeyboardOverlay(activeRune rune, theme config.Theme, termWidth int) string
- type DynamicStyles
- type TestMode
Constants ¶
View Source
const RawLogo = ` ___ _____
|_ | |_ _|
| | ___ ___ _ __ __ _ | | _ _ _ __ ___
| |/ _ \/ _ \ '__/ _` + "`" + ` || | | | | | '_ \ / _ \
/\__/ / __/ __/ | | (_| || | | |_| | |_) | __/
\____/ \___|\___|_| \__,_||_| \__, | .__/ \___|
__/ | |
|___/|_|
[ The Offline Terminal Typing Tester ]`
Variables ¶
This section is empty.
Functions ¶
func RenderKeyboardHeatmap ¶
RenderKeyboardHeatmap renders a full color-coded ASCII QWERTY keyboard heatmap.
func RenderLogo ¶
RenderLogo renders the branded JeeraType logo themed dynamically.
func RenderMenuView ¶
func RenderMenuView( timeModes []int, selectedModeIdx int, currentMode TestMode, currentTheme config.Theme, ghostWPM float64, showKeys bool, termWidth int, ) string
RenderMenuView renders initial options.
func RenderResultsView ¶
RenderResultsView renders post-game stats.
Types ¶
type DynamicStyles ¶
type DynamicStyles struct {
Theme config.Theme
StyleUntyped lipgloss.Style
StyleCorrect lipgloss.Style
StyleIncorrect lipgloss.Style
StyleCursor lipgloss.Style
StyleGhost lipgloss.Style
StyleHeader lipgloss.Style
StyleSubtext lipgloss.Style
StyleActive lipgloss.Style
StyleInactive lipgloss.Style
StyleCard lipgloss.Style
StyleCardVal lipgloss.Style
StyleHelp lipgloss.Style
}
DynamicStyles constructs Lipgloss styles dynamically based on selected Theme.
func NewDynamicStyles ¶
func NewDynamicStyles(theme config.Theme) DynamicStyles
NewDynamicStyles creates themed styles.
Click to show internal directories.
Click to hide internal directories.