Skip to content

Commit

Permalink
change fg color to green
Browse files Browse the repository at this point in the history
  • Loading branch information
KappaDistributive committed Nov 24, 2022
1 parent 84888be commit f16444e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
MainMaxX int = 80
MainMinY int = 0
MainMaxY int = 15
CorrectFg string = "blue"
CorrectFg string = "green"
FalseFg string = "red"
ConfigDir string = "/.config/gotypist"
LessonsDir string = ConfigDir + "/lessons"
Expand Down
4 changes: 2 additions & 2 deletions v1/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (selection Selection) Handler(e <-chan ui.Event) (Viewport, error) {
func (selection Selection) Render() {
selection.savedCursorPos = selection.content.SelectedRow
lesson := selection.lessons[selection.savedCursorPos]
selection.content.Title = fmt.Sprintf("Lesson | %v", lesson.Tag )
selection.content.Title = fmt.Sprintf("Lesson | %v", lesson.Tag)
ui.Render(selection.content)
}

Expand Down Expand Up @@ -111,7 +111,7 @@ func createSelection(cursorPos int) Selection {
}

content.SetRect(MainMinX, MainMinY, MainMaxX, MainMaxY)
content.SelectedRowStyle = ui.NewStyle(ui.ColorBlue)
content.SelectedRowStyle = ui.NewStyle(ui.ColorGreen)
content.SelectedRow = cursorPos
return Selection{
title: "Selection",
Expand Down

0 comments on commit f16444e

Please sign in to comment.