applyStyle applies the specified button style
(bs *ButtonStyle)
| 196 | |
| 197 | // applyStyle applies the specified button style |
| 198 | func (b *Button) applyStyle(bs *ButtonStyle) { |
| 199 | |
| 200 | b.Panel.ApplyStyle(&bs.PanelStyle) |
| 201 | if b.icon != nil { |
| 202 | b.icon.SetColor4(&bs.FgColor) |
| 203 | } |
| 204 | b.Label.SetColor4(&bs.FgColor) |
| 205 | } |
| 206 | |
| 207 | // recalc recalculates all dimensions and position from inside out |
| 208 | func (b *Button) recalc() { |
no test coverage detected