update updates the folder visual state
()
| 151 | |
| 152 | // update updates the folder visual state |
| 153 | func (f *Folder) update() { |
| 154 | |
| 155 | if f.cursorOver { |
| 156 | f.applyStyle(&f.styles.Over) |
| 157 | return |
| 158 | } |
| 159 | f.applyStyle(&f.styles.Normal) |
| 160 | } |
| 161 | |
| 162 | // applyStyle applies the specified style |
| 163 | func (f *Folder) applyStyle(s *FolderStyle) { |
no test coverage detected