update updates the window's visual state.
()
| 252 | |
| 253 | // update updates the window's visual state. |
| 254 | func (w *Window) update() { |
| 255 | |
| 256 | if !w.Enabled() { |
| 257 | w.applyStyle(&w.styles.Disabled) |
| 258 | return |
| 259 | } |
| 260 | w.applyStyle(&w.styles.Normal) |
| 261 | } |
| 262 | |
| 263 | // applyStyle applies a window style to the window. |
| 264 | func (w *Window) applyStyle(s *WindowStyle) { |
no test coverage detected