Skip to content

Commit

Permalink
Merge pull request #362 from tilliwilli/change-white-colors-to-default
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield authored Oct 8, 2022
2 parents 0b158df + 49dd19b commit 79feb36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/gui/confirmation_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (gui *Gui) prepareConfirmationPanel(currentView *gocui.View, title, prompt
gui.g.StartTicking()
confirmationView.Title = title
confirmationView.Wrap = true
confirmationView.FgColor = gocui.ColorWhite
confirmationView.FgColor = gocui.ColorDefault
}
gui.g.Update(func(g *gocui.Gui) error {
return gui.switchFocus(gui.g, currentView, confirmationView, false)
Expand Down Expand Up @@ -147,7 +147,7 @@ func (gui *Gui) setKeyBindings(g *gocui.Gui, handleConfirm, handleClose func(*go
}

// createSpecificErrorPanel allows you to create an error popup, specifying the
// view to be focused when the user closes the popup, and a boolean specifying
// view to be focused when the user closes the popup, and a boolean specifying
// whether we will log the error. If the message may include a user password,
// this function is to be used over the more generic createErrorPanel, with
// willLog set to false
Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/gocui.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GetGocuiAttribute(key string) gocui.Attribute {
if present {
return value
}
return gocui.ColorWhite
return gocui.ColorDefault
}

// GetGocuiStyle bitwise OR's a list of attributes obtained via the given keys
Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/menu_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (gui *Gui) createMenu(title string, items interface{}, itemCount int, handl
x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(gui.g, false, list)
menuView, _ := gui.g.SetView("menu", x0, y0, x1, y1, 0)
menuView.Title = title
menuView.FgColor = gocui.ColorWhite
menuView.FgColor = gocui.ColorDefault
menuView.Clear()
fmt.Fprint(menuView, list)
gui.State.Panels.Menu.SelectedLine = 0
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func GetGocuiAttribute(key string) gocui.Attribute {
if present {
return value
}
return gocui.ColorWhite
return gocui.ColorDefault
}

// GetColorAttribute gets the color attribute from the string
Expand Down

0 comments on commit 79feb36

Please sign in to comment.