1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Make the travisci module interactive

* Add ability to select and open builds
* Add commit message (oneline style) to text displayed in the widget
* Add documentation on the new keyboard shortcuts
* Cleanup some duplicate code
This commit is contained in:
Anand Sudhir Prayaga
2018-08-03 11:33:11 +02:00
parent 37858d4210
commit 568276343c
11 changed files with 194 additions and 37 deletions

View File

@@ -66,10 +66,7 @@ func (widget *Widget) displayStats(project *GerritProject) string {
func (widget *Widget) rowColor(index int) string {
if widget.View.HasFocus() && (index == widget.selected) {
foreColor := wtf.Config.UString("wtf.colors.highlight.fore", "black")
backColor := wtf.Config.UString("wtf.colors.highlight.back", "orange")
return fmt.Sprintf("%s:%s", foreColor, backColor)
return wtf.DefaultFocussedRowColor()
}
return wtf.RowColor("gerrit", index)
}