CComponentsFooter: reduce button height inside footer

TODO: more optimization seems required
This commit is contained in:
2016-10-17 21:17:01 +02:00
parent 78259c6ec3
commit 542de648f5

View File

@@ -167,7 +167,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label_s * const cont
* with default width to chain object. * with default width to chain object.
*/ */
vector<CComponentsItem*> v_btns; vector<CComponentsItem*> v_btns;
int h_btn = /*(ccf_enable_button_bg ? */(height*85/100)-2*fr_thickness/* : height)*/-ccf_button_shadow_width; int h_btn = /*(ccf_enable_button_bg ? */(height*85/100)-2*fr_thickness-OFFSET_INNER_SMALL/* : height)*/-ccf_button_shadow_width;
for (size_t i= 0; i< label_count; i++){ for (size_t i= 0; i< label_count; i++){
string txt = content[i].text; string txt = content[i].text;
string icon_name = string(content[i].button); string icon_name = string(content[i].button);