- if (_dirty) {
- const Font *ft = style()->getFont();
- Color *text_color = (isFocused() ? style()->getTextFocus()
- : style()->getTextUnfocus());
- unsigned int sidemargin = style()->getBevelWidth() * 2;
-
- ustring t = _text; // the actual text to draw
- int x = sidemargin; // x coord for the text
-
- // find a string that will fit inside the area for text
- int max_length = width() - sidemargin * 2;
- if (max_length <= 0) {
- t = ""; // can't fit anything
- } else {
- size_t text_len = t.size();
- int length;
+ otk::Widget::renderForeground();
+
+ const Font *ft = style()->labelFont();
+ RenderColor *text_color = (isFocused() ? style()->textFocusColor()
+ : style()->textUnfocusColor());
+ unsigned int sidemargin = style()->bevelWidth() * 2;
+
+ ustring t = _text; // the actual text to draw
+ int x = sidemargin; // x coord for the text
+
+ // find a string that will fit inside the area for text
+ int max_length = width() - sidemargin * 2;
+ if (max_length <= 0) {
+ t = ""; // can't fit anything
+ } else {
+ size_t text_len = t.size();
+ int length;