mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsButton: involving of button text for dyn font evaluation
Origin commit data
------------------
Commit: a47091872b
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-12 (Sat, 12 Oct 2013)
This commit is contained in:
@@ -174,7 +174,7 @@ void CComponentsButton::initCaption()
|
|||||||
}
|
}
|
||||||
|
|
||||||
cc_btn_capt_obj->setDimensionsAll(cap_x, cap_y, cap_w, cap_h);
|
cc_btn_capt_obj->setDimensionsAll(cap_x, cap_y, cap_w, cap_h);
|
||||||
cc_btn_font = *cc_btn_dy_font->getDynFont(cap_w, cap_h);
|
cc_btn_font = *cc_btn_dy_font->getDynFont(cap_w, cap_h, cc_btn_capt);
|
||||||
|
|
||||||
cc_btn_capt_obj->setTextColor(this->cc_item_enabled ? COL_MENUCONTENT_TEXT : COL_MENUCONTENTINACTIVE_TEXT);
|
cc_btn_capt_obj->setTextColor(this->cc_item_enabled ? COL_MENUCONTENT_TEXT : COL_MENUCONTENTINACTIVE_TEXT);
|
||||||
cc_btn_capt_obj->setText(cc_btn_capt, CTextBox::NO_AUTO_LINEBREAK, cc_btn_font);
|
cc_btn_capt_obj->setText(cc_btn_capt, CTextBox::NO_AUTO_LINEBREAK, cc_btn_font);
|
||||||
|
Reference in New Issue
Block a user