Roles are rendered using same colorer function from skin (#2027)
parent
7f67986be1
commit
8b51950c25
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/derailed/tcell/v2"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
)
|
)
|
||||||
|
|
@ -36,9 +35,7 @@ type Rbac struct {
|
||||||
|
|
||||||
// ColorerFunc colors a resource row.
|
// ColorerFunc colors a resource row.
|
||||||
func (Rbac) ColorerFunc() ColorerFunc {
|
func (Rbac) ColorerFunc() ColorerFunc {
|
||||||
return func(_ string, _ Header, _re RowEvent) tcell.Color {
|
return DefaultColorer
|
||||||
return tcell.ColorMediumSpringGreen
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Header returns a header row.
|
// Header returns a header row.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue