mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsButton: remake caption size to 85% of button height
Better optical matching size.
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user