70 lines
2.3 KiB
Go
70 lines
2.3 KiB
Go
|
|
|
|
|
|
|
|
|
|
|
|
package gitctl
|
|
|
|
import "github.com/charmbracelet/lipgloss"
|
|
|
|
var (
|
|
colorGreen = lipgloss.Color("2")
|
|
colorRed = lipgloss.Color("1")
|
|
colorYellow = lipgloss.Color("3")
|
|
colorDim = lipgloss.Color("245")
|
|
colorAccent = lipgloss.Color("39")
|
|
|
|
|
|
frame = lipgloss.NewStyle().
|
|
Border(lipgloss.RoundedBorder()).
|
|
BorderForeground(colorDim).
|
|
Padding(0, 1)
|
|
|
|
titleStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
|
|
|
|
statusOK = lipgloss.NewStyle().Foreground(colorGreen).Bold(true)
|
|
statusBad = lipgloss.NewStyle().Foreground(colorRed).Bold(true)
|
|
|
|
groupStyle = lipgloss.NewStyle().Bold(true).Foreground(colorDim)
|
|
itemStyle = lipgloss.NewStyle()
|
|
selectedStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
hintStyle = lipgloss.NewStyle().Foreground(colorDim)
|
|
|
|
|
|
labelStyle = lipgloss.NewStyle().Foreground(colorDim).Width(12)
|
|
focusedLabelStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent).Width(12)
|
|
inputStyle = lipgloss.NewStyle().Foreground(colorYellow)
|
|
focusedInputStyle = lipgloss.NewStyle().Foreground(colorGreen)
|
|
permStyle = lipgloss.NewStyle().Foreground(colorDim)
|
|
permActiveStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
errStyle = lipgloss.NewStyle().Foreground(colorRed)
|
|
|
|
|
|
resultOKStyle = lipgloss.NewStyle().Foreground(colorGreen).Bold(true)
|
|
resultInfoStyle = lipgloss.NewStyle().Foreground(colorYellow).Bold(true)
|
|
resultErrStyle = lipgloss.NewStyle().Foreground(colorRed).Bold(true)
|
|
warnStyle = lipgloss.NewStyle().Foreground(colorYellow).Bold(true)
|
|
|
|
|
|
tabStyle = lipgloss.NewStyle().Foreground(colorDim)
|
|
tabActiveStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
|
|
|
|
badgeOK = lipgloss.NewStyle().Foreground(colorGreen).Bold(true)
|
|
badgeWarn = lipgloss.NewStyle().Foreground(colorYellow)
|
|
badgeDim = lipgloss.NewStyle().Foreground(colorDim)
|
|
|
|
|
|
detailTitleStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
fieldLabelStyle = lipgloss.NewStyle().Foreground(colorDim)
|
|
fieldValueStyle = lipgloss.NewStyle()
|
|
actionKeyStyle = lipgloss.NewStyle().Bold(true).Foreground(colorAccent)
|
|
|
|
|
|
permPillRead = lipgloss.NewStyle().Foreground(colorDim)
|
|
permPillWrite = lipgloss.NewStyle().Foreground(colorYellow).Bold(true)
|
|
permPillAdmin = lipgloss.NewStyle().Foreground(colorGreen).Bold(true)
|
|
)
|