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:
@@ -113,6 +113,13 @@ func RightAlignFormat(view *tview.TextView) string {
|
||||
return fmt.Sprintf("%%%ds", w-1)
|
||||
}
|
||||
|
||||
func DefaultFocussedRowColor() string {
|
||||
foreColor := Config.UString("wtf.colors.highlight.fore", "black")
|
||||
backColor := Config.UString("wtf.colors.highlight.back", "orange")
|
||||
|
||||
return fmt.Sprintf("%s:%s", foreColor, backColor)
|
||||
}
|
||||
|
||||
func RowColor(module string, idx int) string {
|
||||
evenKey := fmt.Sprintf("wtf.mods.%s.colors.row.even", module)
|
||||
oddKey := fmt.Sprintf("wtf.mods.%s.colors.row.odd", module)
|
||||
|
||||
Reference in New Issue
Block a user