From f16444e3065e30ef33664f216161cb5b2f7f4e9d Mon Sep 17 00:00:00 2001 From: Stefan Mesken Date: Thu, 24 Nov 2022 10:28:11 +0100 Subject: [PATCH] change fg color to green --- v1/main.go | 2 +- v1/selection.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v1/main.go b/v1/main.go index 36f47ad..8145721 100644 --- a/v1/main.go +++ b/v1/main.go @@ -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" diff --git a/v1/selection.go b/v1/selection.go index 32ea8f2..6c6844c 100644 --- a/v1/selection.go +++ b/v1/selection.go @@ -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) } @@ -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",