(title string)
| 391 | } |
| 392 | |
| 393 | func (h *Help) titleCell(title string) *tview.TableCell { |
| 394 | c := tview.NewTableCell(title) |
| 395 | c.SetTextColor(h.Styles().K9s.Help.SectionColor.Color()) |
| 396 | c.SetAttributes(tcell.AttrBold) |
| 397 | c.SetExpansion(1) |
| 398 | c.SetAlign(tview.AlignLeft) |
| 399 | |
| 400 | return c |
| 401 | } |
| 402 | |
| 403 | func padCellWithRef(s string, width int, ref any) *tview.TableCell { |
| 404 | return padCell(s, width).SetReference(ref) |
no test coverage detected