add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6d58a3b1c9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-20 (Wed, 20 Sep 2017)

Origin message was:
------------------
- add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-09-20 13:46:31 +02:00
parent 757f054720
commit daf4480f61
16 changed files with 21 additions and 20 deletions

View File

@@ -269,7 +269,7 @@ void CMenuItem::paintItemCaption(const bool select_mode, const char * right_text
right_frame_col = COL_MENUCONTENTINACTIVE_TEXT;
}
CComponentsShapeSquare col(stringstartposOption, y + OFFSET_INNER_SMALL, dx - stringstartposOption + x - OFFSET_INNER_MID, item_height - 2*OFFSET_INNER_SMALL, NULL, false, right_frame_col, right_bg_col);
col.setFrameThickness(1); //NI
col.setFrameThickness(FRAME_WIDTH_MIN);
col.setCorner(RADIUS_SMALL);
col.paint(false);
}
@@ -1549,7 +1549,7 @@ void CMenuWidget::paintHint(int pos)
info_box = new CComponentsInfoBox();
info_box->setDimensionsAll(x, ypos2, iwidth, hint_height);
info_box->setFrameThickness(1); //NI
info_box->setFrameThickness(FRAME_WIDTH_MIN);
//NI info_box->removeLineBreaks(str);
info_box->setText(str, CTextBox::AUTO_WIDTH, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_HINT], COL_MENUCONTENT_TEXT);
info_box->setCorner(rad);