changed "white" colors to "default" to work in both light and dark terminals

pull/362/head
KOLOSSA Tilman 2 years ago
parent 0b158dfabe
commit e93cadf1d6

@ -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)
@ -147,7 +147,9 @@ 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

@ -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

@ -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

@ -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

Loading…
Cancel
Save