Skip to content

Commit

Permalink
Change color
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 2, 2020
1 parent e580172 commit e9c242e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/gui/item/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewResults() *Results {
// ShowLatest updates its own tree view and lists the latest execution results.
func (r *Results) ShowLatest(issues []golangcilint.Issue) {
root := tview.NewTreeNode("Issues").
SetColor(tcell.ColorYellow)
SetColor(tcell.ColorWhite)

r.SetRoot(root).
SetCurrentNode(root)
Expand All @@ -41,7 +41,7 @@ func (r *Results) addChildren(node *tview.TreeNode, issues []golangcilint.Issue)
child := tview.NewTreeNode(linter).
SetText("from " + linter).
SetSelectable(true).
SetColor(tcell.ColorGreen)
SetColor(tcell.ColorAqua)
node.AddChild(child)
}
}
4 changes: 2 additions & 2 deletions pkg/gui/item/source_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func NewSourceFiles(rootDir string) *SourceFiles {
}

root := tview.NewTreeNode(rootDir).
SetColor(tcell.ColorRed)
SetColor(tcell.ColorWhite)
s.SetRoot(root).
SetCurrentNode(root).
SetBorder(true).
Expand Down Expand Up @@ -56,7 +56,7 @@ func (s *SourceFiles) addChildren(node *tview.TreeNode, path string) error {
SetReference(filepath.Join(path, file.Name())).
SetSelectable(file.IsDir())
if file.IsDir() {
child.SetColor(tcell.ColorGreen)
child.SetColor(tcell.ColorAqua)
}
node.AddChild(child)
}
Expand Down

0 comments on commit e9c242e

Please sign in to comment.