MCPcopy
hub / github.com/derailed/k9s / StylesChanged

Method StylesChanged

internal/view/details.go:165–170  ·  view source on GitHub ↗

StylesChanged notifies the skin changed.

(s *config.Styles)

Source from the content-addressed store, hash-verified

163
164// StylesChanged notifies the skin changed.
165func (d *Details) StylesChanged(s *config.Styles) {
166 d.SetBackgroundColor(s.BgColor())
167 d.text.SetTextColor(s.FgColor())
168 d.SetBorderFocusColor(s.Frame().Border.FocusColor.Color())
169 d.TextChanged(d.model.Peek())
170}
171
172// Update updates the view content.
173func (d *Details) Update(buff string) *Details {

Callers 1

InitMethod · 0.95

Calls 7

TextChangedMethod · 0.95
BgColorMethod · 0.80
FgColorMethod · 0.80
ColorMethod · 0.80
FrameMethod · 0.80
SetBackgroundColorMethod · 0.65
PeekMethod · 0.65

Tested by

no test coverage detected