CComponentsButton: remake caption size to 85% of button height

Better optical matching size.


Origin commit data
------------------
Commit: ce11a3a0df
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
This commit is contained in:
2016-10-07 13:58:08 +02:00
parent 6f30f1b274
commit 1cb41d0ba7

View File

@@ -195,7 +195,7 @@ void CComponentsButton::initCaption()
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 h_cap = (height*75/100) - 2*w_frame;
int h_cap = (height*85/100) - 2*w_frame;
/*NOTE:
paint of centered text in y direction without y_offset
looks unlovely displaced in y direction especially besides small icons and inside small areas,