CComponentsButton: remake caption size to 85% of button height

Better optical matching size.
This commit is contained in:
2016-10-07 13:58:08 +02:00
parent b3e7e49592
commit ce11a3a0df

View File

@@ -195,7 +195,7 @@ void CComponentsButton::initCaption()
x_cap += cc_btn_icon_obj ? cc_btn_icon_obj->getWidth() : 0; x_cap += cc_btn_icon_obj ? cc_btn_icon_obj->getWidth() : 0;
int w_cap = width - w_frame - append_x_offset - x_cap - w_frame; int w_cap = width - w_frame - append_x_offset - x_cap - w_frame;
int h_cap = (height*75/100) - 2*w_frame; int h_cap = (height*85/100) - 2*w_frame;
/*NOTE: /*NOTE:
paint of centered text in y direction without y_offset paint of centered text in y direction without y_offset
looks unlovely displaced in y direction especially besides small icons and inside small areas, looks unlovely displaced in y direction especially besides small icons and inside small areas,