applyStyle applies the specified style
(s *FolderStyle)
| 161 | |
| 162 | // applyStyle applies the specified style |
| 163 | func (f *Folder) applyStyle(s *FolderStyle) { |
| 164 | |
| 165 | f.Panel.ApplyStyle(&s.PanelStyle) |
| 166 | |
| 167 | icode := 0 |
| 168 | if f.contentPanel.GetPanel().Visible() { |
| 169 | icode = 1 |
| 170 | } |
| 171 | f.icon.SetText(string(s.Icons[icode])) |
| 172 | f.icon.SetColor4(&s.FgColor) |
| 173 | f.label.SetBgColor4(&s.BgColor) |
| 174 | f.label.SetColor4(&s.FgColor) |
| 175 | } |
| 176 | |
| 177 | func (f *Folder) recalc() { |
| 178 |
no test coverage detected