styleEditor applies the editor styles.
()
| 475 | |
| 476 | // styleEditor applies the editor styles. |
| 477 | func (ed *Editor) styleEditor() { |
| 478 | if ed.NeedsRebuild() { |
| 479 | highlighting.UpdateFromTheme() |
| 480 | if ed.Buffer != nil { |
| 481 | ed.Buffer.SetHighlighting(highlighting.StyleDefault) |
| 482 | } |
| 483 | } |
| 484 | ed.WidgetBase.Style() |
| 485 | ed.CursorWidth.ToDots(&ed.Styles.UnitContext) |
| 486 | } |
| 487 | |
| 488 | func (ed *Editor) Style() { |
| 489 | ed.styleEditor() |
no test coverage detected