MCPcopy Create free account
hub / github.com/cogentcore/core / styleEditor

Method styleEditor

texteditor/editor.go:477–486  ·  view source on GitHub ↗

styleEditor applies the editor styles.

()

Source from the content-addressed store, hash-verified

475
476// styleEditor applies the editor styles.
477func (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
488func (ed *Editor) Style() {
489 ed.styleEditor()

Callers 1

StyleMethod · 0.95

Calls 5

UpdateFromThemeFunction · 0.92
NeedsRebuildMethod · 0.80
SetHighlightingMethod · 0.80
StyleMethod · 0.65
ToDotsMethod · 0.45

Tested by

no test coverage detected