add "inputs" page

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-13 17:59:03 +02:00
parent df530f39b0
commit 6e4f8b889c
23 changed files with 1047 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
package input
import (
"charm.land/lipgloss/v2"
ilovetui "github.com/anotherhadi/ilovetui"
)
func errorStyle() lipgloss.Style {
return lipgloss.NewStyle().Foreground(ilovetui.S.Error)
}
func successStyle() lipgloss.Style {
return lipgloss.NewStyle().Foreground(ilovetui.S.Success)
}
func subtleStyle() lipgloss.Style {
return lipgloss.NewStyle().Foreground(ilovetui.S.Subtle)
}
func mutedStyle() lipgloss.Style {
return lipgloss.NewStyle().Foreground(ilovetui.S.Muted)
}
// sectionTitleStyle highlights a section's title when it holds keyboard
// focus, so Tab-cycling between the layout list and the mouse slider is
// visible even before the user starts navigating within a section.
func sectionTitleStyle(focused bool) lipgloss.Style {
style := lipgloss.NewStyle().Bold(true)
if focused {
style = style.Foreground(ilovetui.S.Primary)
}
return style
}