From 094be99764392f192d26dd32429ec6a9943ba547 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Wed, 1 Mar 2017 12:09:05 +1100 Subject: [PATCH] add color for created status containers, update default sortfield --- config/param.go | 2 +- cwidgets/compact/main.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/param.go b/config/param.go index 950efa2..e6f0ce4 100644 --- a/config/param.go +++ b/config/param.go @@ -14,7 +14,7 @@ var params = []*Param{ }, &Param{ Key: "sortField", - Val: "id", + Val: "state", Label: "Container Sort Field", }, } diff --git a/cwidgets/compact/main.go b/cwidgets/compact/main.go index 8adee57..976917b 100644 --- a/cwidgets/compact/main.go +++ b/cwidgets/compact/main.go @@ -126,6 +126,9 @@ func (row *Compact) SetStatus(val string) { case "paused": row.Status.Text = fmt.Sprintf("%s%s", vBar, vBar) row.Status.TextFgColor = ui.ColorDefault + case "created": + row.Status.Text = mark + row.Status.TextFgColor = ui.ColorDefault default: row.Status.Text = mark row.Status.TextFgColor = ui.ColorRed