Skip to content

Commit

Permalink
edit screen text colour
Browse files Browse the repository at this point in the history
  • Loading branch information
Cwjiee committed Apr 7, 2024
1 parent ca69eb5 commit 55d4b82
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ var docStyle = lipgloss.NewStyle().Margin(1, 2)
var items []list.Item
var redirectRepo string

const (
purple = lipgloss.Color("#8F00FF")
darkGray = lipgloss.Color("#767676")
)

var (
inputTitle = lipgloss.NewStyle().Foreground(purple)
inputHelp = lipgloss.NewStyle().Foreground(darkGray)
)

type item struct {
title, desc string
}
Expand Down Expand Up @@ -149,9 +159,10 @@ func (m model) View() string {

func editView(m model) string {
return fmt.Sprintf(
"Edit your path\n\n%s\n\n%s",
"%s\n\n%s\n\n%s",
inputTitle.Width(20).Render("Edit your path"),
m.textInput.View(),
"(esc to quit) (enter to confirm changes)",
inputHelp.Width(50).Render("(esc to quit) (enter to confirm changes)"),
) + "\n"
}

Expand Down

0 comments on commit 55d4b82

Please sign in to comment.