Skip to content

Commit

Permalink
Change warn color
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 6, 2020
1 parent 73932e0 commit 9a80bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (g *Gui) switchPage(prev, next string) {
// showWarn shows the given message as a modal.
// doneLabel param is used for the name of button to close.
func (g *Gui) showWarn(message, doneLabel string) {
g.showModal(message, doneLabel, func() { g.switchPage(modalPageName, mainPageName) }, tcell.ColorBlack, tcell.ColorBlack, tcell.ColorWhite)
g.showModal(message, doneLabel, func() { g.switchPage(modalPageName, mainPageName) }, tcell.ColorBlack, tcell.ColorLime, tcell.ColorBlack)
}

// showLoading shows the given message as a modal.
Expand Down Expand Up @@ -175,7 +175,7 @@ func (g *Gui) enableLinter(node *tview.TreeNode, linter *config.Linter) {

func (g *Gui) disableLinter(node *tview.TreeNode, linter *config.Linter) {
if err := g.runner.DisableLinter(linter.Name()); err != nil {
g.showWarn(err.Error(), "Enter")
g.showWarn(err.Error(), "Press Enter to close")
return
}
node.SetColor(item.DefaultLinterColor)
Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/keybindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (g *Gui) grobalKeybind(event *tcell.EventKey) {
issues, err := g.runner.Run()
close()
if err != nil {
g.showWarn(err.Error(), "Close")
g.showWarn(err.Error(), "Press Enter to close")
g.application.Draw()
return
}
Expand Down

0 comments on commit 9a80bb5

Please sign in to comment.