Roles are rendered using same colorer function from skin (#2027)

mine
Alexandru Placinta 2023-04-13 16:03:35 +02:00 committed by GitHub
parent 7f67986be1
commit 8b51950c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -4,7 +4,6 @@ import (
"fmt"
"strings"
"github.com/derailed/tcell/v2"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
@ -36,9 +35,7 @@ type Rbac struct {
// ColorerFunc colors a resource row.
func (Rbac) ColorerFunc() ColorerFunc {
return func(_ string, _ Header, _re RowEvent) tcell.Color {
return tcell.ColorMediumSpringGreen
}
return DefaultColorer
}
// Header returns a header row.