StylesChanged notifies the skin changed.
(s *config.Styles)
| 163 | |
| 164 | // StylesChanged notifies the skin changed. |
| 165 | func (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. |
| 173 | func (d *Details) Update(buff string) *Details { |
no test coverage detected