- if (_pressed_focus_tx) delete _pressed_focus_tx;
- if (_pressed_unfocus_tx) delete _pressed_unfocus_tx;
+ FocusLabel::setStyle(style);
+
+ setTexture(style->buttonUnpressFocusBackground());
+ setUnfocusTexture(style->buttonUnpressUnfocusBackground());
+ _pressed_focus_tx = style->buttonPressFocusBackground();
+ _pressed_unfocus_tx = style->buttonPressUnfocusBackground();