Standardize TUI formatting and styling across all screens
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package components
|
||||
|
||||
import (
|
||||
"github.com/calmcacil/wg-admin/internal/tui/theme"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -30,22 +31,24 @@ type SearchModel struct {
|
||||
}
|
||||
|
||||
// Styles
|
||||
|
||||
// Styles (using theme package)
|
||||
var (
|
||||
searchBarStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("255")).
|
||||
Background(lipgloss.Color("235")).
|
||||
Padding(0, 1).
|
||||
Border(lipgloss.RoundedBorder()).
|
||||
BorderForeground(lipgloss.Color("240"))
|
||||
Foreground(lipgloss.Color("255")).
|
||||
Background(theme.StyleBackground).
|
||||
Padding(0, 1).
|
||||
Border(lipgloss.RoundedBorder()).
|
||||
BorderForeground(theme.StyleBorder)
|
||||
searchPromptStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("226")).
|
||||
Bold(true)
|
||||
Foreground(lipgloss.Color("226")).
|
||||
Bold(true)
|
||||
searchFilterStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("147"))
|
||||
Foreground(lipgloss.Color("147"))
|
||||
searchCountStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("241"))
|
||||
Foreground(lipgloss.Color("241"))
|
||||
searchHelpStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("243"))
|
||||
Foreground(lipgloss.Color("243"))
|
||||
)
|
||||
|
||||
// NewSearch creates a new search component
|
||||
|
||||
Reference in New Issue
Block a user