mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add color for created status containers, update default sortfield
This commit is contained in:
@@ -14,7 +14,7 @@ var params = []*Param{
|
|||||||
},
|
},
|
||||||
&Param{
|
&Param{
|
||||||
Key: "sortField",
|
Key: "sortField",
|
||||||
Val: "id",
|
Val: "state",
|
||||||
Label: "Container Sort Field",
|
Label: "Container Sort Field",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,9 @@ func (row *Compact) SetStatus(val string) {
|
|||||||
case "paused":
|
case "paused":
|
||||||
row.Status.Text = fmt.Sprintf("%s%s", vBar, vBar)
|
row.Status.Text = fmt.Sprintf("%s%s", vBar, vBar)
|
||||||
row.Status.TextFgColor = ui.ColorDefault
|
row.Status.TextFgColor = ui.ColorDefault
|
||||||
|
case "created":
|
||||||
|
row.Status.Text = mark
|
||||||
|
row.Status.TextFgColor = ui.ColorDefault
|
||||||
default:
|
default:
|
||||||
row.Status.Text = mark
|
row.Status.Text = mark
|
||||||
row.Status.TextFgColor = ui.ColorRed
|
row.Status.TextFgColor = ui.ColorRed
|
||||||
|
|||||||
Reference in New Issue
Block a user