applyStyle applies the specified button style
(bs *ImageButtonStyle)
| 244 | |
| 245 | // applyStyle applies the specified button style |
| 246 | func (b *ImageButton) applyStyle(bs *ImageButtonStyle) { |
| 247 | |
| 248 | b.Panel.ApplyStyle(&bs.PanelStyle) |
| 249 | if b.label != nil { |
| 250 | b.label.SetColor4(&bs.FgColor) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // recalc recalculates all dimensions and position from inside out |
| 255 | func (b *ImageButton) recalc() { |
no test coverage detected