- cc_frm_button: don't use frames per default and align fontsize

to familiar size
This commit is contained in:
svenhoefer
2016-08-14 20:56:41 +02:00
parent f898c08154
commit fa27f87bb1

View File

@@ -110,7 +110,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
cc_item_enabled = enabled; cc_item_enabled = enabled;
cc_item_selected = selected; cc_item_selected = selected;
fr_thickness = 3; //TODO: parts of the GUI still don't use framed buttons fr_thickness = 0; //TODO: parts of the GUI still don't use framed buttons
append_x_offset = 6; append_x_offset = 6;
append_y_offset = 0; append_y_offset = 0;
corner_rad = 0; corner_rad = 0;
@@ -192,7 +192,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 - fr_thickness - append_x_offset - x_cap - fr_thickness; int w_cap = width - fr_thickness - append_x_offset - x_cap - fr_thickness;
int h_cap = height*85/100/* - 2*fr_thickness*/; int h_cap = height*65/100 /*- 2*fr_thickness*/;
/*NOTE: /*NOTE:
paint of centered text in y direction without y_offset paint of centered text in y direction without y_offset