applyStyles applies the specified style to this tree node
(s *TreeNodeStyle)
| 354 | |
| 355 | // applyStyles applies the specified style to this tree node |
| 356 | func (n *TreeNode) applyStyle(s *TreeNodeStyle) { |
| 357 | |
| 358 | n.Panel.ApplyStyle(&s.PanelStyle) |
| 359 | icode := 0 |
| 360 | if n.expanded { |
| 361 | icode = 1 |
| 362 | } |
| 363 | n.icon.SetText(string(s.Icons[icode])) |
| 364 | n.icon.SetColor4(&s.FgColor) |
| 365 | n.label.SetColor4(&s.FgColor) |
| 366 | } |
| 367 | |
| 368 | // update updates this tree node style |
| 369 | func (n *TreeNode) update() { |
no test coverage detected