MCPcopy
hub / github.com/g3n/engine / applyStyle

Method applyStyle

gui/scroller.go:559–568  ·  view source on GitHub ↗

TODO - if the style is changed this needs to be called to update the scrollbars and corner panel

(ss *ScrollerStyle)

Source from the content-addressed store, hash-verified

557
558// TODO - if the style is changed this needs to be called to update the scrollbars and corner panel
559func (s *Scroller) applyStyle(ss *ScrollerStyle) {
560
561 s.style = ss
562
563 s.vscroll.applyStyle(&s.style.VerticalScrollbar.ScrollBarStyle)
564 s.hscroll.applyStyle(&s.style.HorizontalScrollbar.ScrollBarStyle)
565 s.corner.ApplyStyle(&s.style.CornerPanel)
566
567 s.Update()
568}

Calls 2

UpdateMethod · 0.95
ApplyStyleMethod · 0.45

Tested by

no test coverage detected