From ce11a3a0dfbc00d75d881533aa689390f79320ee Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 7 Oct 2016 13:58:08 +0200 Subject: [PATCH] CComponentsButton: remake caption size to 85% of button height Better optical matching size. --- src/gui/components/cc_frm_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index c20bcf01d..0331a5a75 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -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,