delete pDisabledBackgroundBitmap;
}
- if (__style == TOOLBAR_TEXT || __style == TOOLBAR_ICON || __style == TOOLBAR_ICON_TEXT || __style == TOOLBAR_COMMAND)
- {
- if (pPressedBackgroundBitmap)
- {
- pColorReplacedBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pPressedBackgroundBitmap,
- Color::GetColor(COLOR_ID_MAGENTA), __itemBackgroundColor[_BUTTON_STATUS_PRESSED]);
- pButton->SetBackgroundBitmap(_BUTTON_STATUS_PRESSED, *pColorReplacedBitmap);
-
- delete pColorReplacedBitmap;
- delete pPressedBackgroundBitmap;
- }
- }
- else
+ if (pPressedBackgroundBitmap)
{
- Color pressedColor;
- GET_COLOR_CONFIG(HEADER::TAB_ITEM_BG_NORMAL, pressedColor);
-
- if (pPressedBackgroundBitmap)
- {
- pColorReplacedBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pPressedBackgroundBitmap,
- Color::GetColor(COLOR_ID_MAGENTA), pressedColor);
- pButton->SetBackgroundBitmap(_BUTTON_STATUS_PRESSED, *pColorReplacedBitmap);
+ pColorReplacedBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pPressedBackgroundBitmap,
+ Color::GetColor(COLOR_ID_MAGENTA), __itemBackgroundColor[_BUTTON_STATUS_PRESSED]);
+ pButton->SetBackgroundBitmap(_BUTTON_STATUS_PRESSED, *pColorReplacedBitmap);
- delete pColorReplacedBitmap;
- delete pPressedBackgroundBitmap;
- }
+ delete pColorReplacedBitmap;
+ delete pPressedBackgroundBitmap;
}
if (pHighlightedBackgroundBitmap)
}
}
- if (__style == TOOLBAR_TEXT || __style == TOOLBAR_ICON || __style == TOOLBAR_ICON_TEXT || __style == TOOLBAR_COMMAND)
- {
- if (pNormalBackgroundEffectBitmap)
- {
- pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_NORMAL, *pNormalBackgroundEffectBitmap);
- delete pNormalBackgroundEffectBitmap;
- }
- if (pDisabledBackgroundEffectBitmap)
- {
- pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_DISABLED, *pDisabledBackgroundEffectBitmap);
- delete pDisabledBackgroundEffectBitmap;
- }
- if (pPressedBackgroundEffectBitmap)
- {
- pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_PRESSED, *pPressedBackgroundEffectBitmap);
- delete pPressedBackgroundEffectBitmap;
- }
- if (pHighlightedBackgroundEffectBitmap)
- {
- pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED, *pHighlightedBackgroundEffectBitmap);
- delete pHighlightedBackgroundEffectBitmap;
- }
- }
- else if (__style == TOOLBAR_HEADER_SEGMENTED || __style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE
- || __style == TOOLBAR_SEGMENTED || __style == TOOLBAR_TITLE || __style == TOOLBAR_TAB || __style == TOOLBAR_TAB_WITH_TITLE || __style == TOOLBAR_TAB_LARGE)
+ //if (__style == TOOLBAR_TEXT || __style == TOOLBAR_ICON || __style == TOOLBAR_ICON_TEXT || __style == TOOLBAR_COMMAND)
+ //{
+ // if (pNormalBackgroundEffectBitmap)
+ // {
+ // pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_NORMAL, *pNormalBackgroundEffectBitmap);
+ // delete pNormalBackgroundEffectBitmap;
+ // }
+ // if (pDisabledBackgroundEffectBitmap)
+ // {
+ // pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_DISABLED, *pDisabledBackgroundEffectBitmap);
+ // delete pDisabledBackgroundEffectBitmap;
+ // }
+ // if (pPressedBackgroundEffectBitmap)
+ // {
+ // pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_PRESSED, *pPressedBackgroundEffectBitmap);
+ // delete pPressedBackgroundEffectBitmap;
+ // }
+ // if (pHighlightedBackgroundEffectBitmap)
+ // {
+ // pButton->SetBackgroundEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED, *pHighlightedBackgroundEffectBitmap);
+ // delete pHighlightedBackgroundEffectBitmap;
+ // }
+ //}
+ if (__style != TOOLBAR_SOFTKEY)
{
if (pPressedBackgroundEffectBitmap)
{
float contentLength = 0.0f;
float segmentedTextAreaHeight = 0.0f;
float revisedTopMargin = 5.0f;
+ float largeTabTopMargin = 0.0f;
+ float largeTabTextHeight = 0.0f;
float leftTouchMargin = pButton->GetLeftTouchMarginF();
float topTouchMargin = pButton->GetTopTouchMarginF();
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_TEXT_LEFT_MARGIN, GetOrientation(), sideMargin);
GET_SHAPE_CONFIG(HEADER::ICON_TEXT_GAP, GetOrientation(), iconTextGap);
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_HEIGHT, GetOrientation(), segmentedTextAreaHeight);
+ GET_SHAPE_CONFIG(HEADER::TAB_LARGE_TOP_MARGIN, GetOrientation(), largeTabTopMargin);
+ GET_SHAPE_CONFIG(HEADER::TAB_LARGE_TEXT_HEIGHT, GetOrientation(), largeTabTextHeight);
if (__style == TOOLBAR_TEXT || __style == TOOLBAR_ICON || __style == TOOLBAR_ICON_TEXT || __style == TOOLBAR_COMMAND)
{
contentLength = buttonItemWidth - sideMargin * 2;
}
- pButton->SetBitmap(_BUTTON_STATUS_NORMAL,
- FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_NORMAL))->GetHeightF()) / 2),
- *(pButton->GetBitmap(_BUTTON_STATUS_NORMAL)));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_NORMAL,
+ FloatPoint((buttonItemWidth - iconAreaWidth) / 2, largeTabTopMargin),
+ *(pButton->GetBitmap(_BUTTON_STATUS_NORMAL)));
+ }
+ else
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_NORMAL,
+ FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_NORMAL))->GetHeightF()) / 2),
+ *(pButton->GetBitmap(_BUTTON_STATUS_NORMAL)));
+ }
}
if (pButton->GetBitmap(_BUTTON_STATUS_PRESSED) != null)
{
contentLength = buttonItemWidth - sideMargin * 2;
}
- pButton->SetBitmap(_BUTTON_STATUS_PRESSED,
- FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_PRESSED))->GetHeightF()) / 2),
- *(pButton->GetBitmap(_BUTTON_STATUS_PRESSED)));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_PRESSED,
+ FloatPoint((buttonItemWidth - iconAreaWidth) / 2, largeTabTopMargin),
+ *(pButton->GetBitmap(_BUTTON_STATUS_PRESSED)));
+ }
+ else
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_PRESSED,
+ FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_PRESSED))->GetHeightF()) / 2),
+ *(pButton->GetBitmap(_BUTTON_STATUS_PRESSED)));
+ }
}
if (pButton->GetBitmap(_BUTTON_STATUS_SELECTED) != null)
{
contentLength = buttonItemWidth - sideMargin * 2;
}
- pButton->SetBitmap(_BUTTON_STATUS_SELECTED,
- FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_SELECTED))->GetHeightF()) / 2),
- *(pButton->GetBitmap(_BUTTON_STATUS_SELECTED)));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_SELECTED,
+ FloatPoint((buttonItemWidth - iconAreaWidth) / 2, largeTabTopMargin),
+ *(pButton->GetBitmap(_BUTTON_STATUS_SELECTED)));
+ }
+ else
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_SELECTED,
+ FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_SELECTED))->GetHeightF()) / 2),
+ *(pButton->GetBitmap(_BUTTON_STATUS_SELECTED)));
+ }
}
if (pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) != null)
{
contentLength = buttonItemWidth - sideMargin * 2;
}
- pButton->SetBitmap(_BUTTON_STATUS_HIGHLIGHTED,
- FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED))->GetHeightF()) / 2),
- *(pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED)));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_HIGHLIGHTED,
+ FloatPoint((buttonItemWidth - iconAreaWidth) / 2, largeTabTopMargin),
+ *(pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED)));
+ }
+ else
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_HIGHLIGHTED,
+ FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED))->GetHeightF()) / 2),
+ *(pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED)));
+ }
}
if (pButton->GetBitmap(_BUTTON_STATUS_DISABLED) != null)
{
contentLength = buttonItemWidth - sideMargin * 2;
}
- pButton->SetBitmap(_BUTTON_STATUS_DISABLED,
- FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_DISABLED))->GetHeightF()) / 2),
- *(pButton->GetBitmap(_BUTTON_STATUS_DISABLED)));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_DISABLED,
+ FloatPoint((buttonItemWidth - iconAreaWidth) / 2, largeTabTopMargin),
+ *(pButton->GetBitmap(_BUTTON_STATUS_DISABLED)));
+ }
+ else
+ {
+ pButton->SetBitmap(_BUTTON_STATUS_DISABLED,
+ FloatPoint((buttonItemWidth - contentLength) / 2, (buttonItemHeight - (pButton->GetBitmap(_BUTTON_STATUS_DISABLED))->GetHeightF()) / 2),
+ *(pButton->GetBitmap(_BUTTON_STATUS_DISABLED)));
+ }
}
if (iconAreaWidth != 0)
{
- pButton->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pButton->SetUserDefinedTextArea(FloatRectangle((buttonItemWidth - contentLength) / 2 + iconAreaWidth + iconTextGap, buttonTextTopMargin, buttonItemWidth - iconAreaWidth - iconTextGap - sideMargin * 2, buttonItemHeight - buttonTextTopMargin * 2));
+ if (__style == TOOLBAR_TAB_LARGE)
+ {
+ pButton->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ pButton->SetUserDefinedTextArea(FloatRectangle(sideMargin, largeTabTopMargin + iconAreaWidth,
+ buttonItemWidth - sideMargin * 2, largeTabTextHeight));
+ }
+ else
+ {
+ pButton->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ pButton->SetUserDefinedTextArea(FloatRectangle((buttonItemWidth - contentLength) / 2 + iconAreaWidth + iconTextGap,
+ buttonTextTopMargin, buttonItemWidth - iconAreaWidth - iconTextGap - sideMargin * 2, buttonItemHeight - buttonTextTopMargin * 2));
+ }
}
else
{
{
if (__pButtonItems[RIGHT_BUTTON]->GetText() == L"")
{
- __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth, vmargin,
headerRightButtonWidth, headerButtonItemHeight));
- __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth - buttonItemGap - headerLeftButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth - buttonItemGap - headerLeftButtonWidth, vmargin,
headerLeftButtonWidth, headerButtonItemHeight));
if (__style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || __style == TOOLBAR_TAB_WITH_TITLE)
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin * 2);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
else
{
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
- __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin * 2);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin * 2);
+ __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
}
else
//__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0, 0, 0, 0);
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
else
{
- __pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
- __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
+ __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
}
}
{
if (__pButtonItems[RIGHT_BUTTON]->GetText() == L"")
{
- __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth, vmargin,
headerRightButtonWidth, headerButtonItemHeight));
- __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth - buttonItemGap - headerLeftButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth - buttonItemGap - headerLeftButtonWidth, vmargin,
headerLeftButtonWidth, headerButtonItemHeight));
if (__style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || __style == TOOLBAR_TAB_WITH_TITLE)
//__pButtonItems[LEFT_BUTTON]->SetTouchMargin(0, 0, 0, 0);
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
else
{
- __pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
- __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
- __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth - leftTouchMargin);
+ __titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
+ __itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
}
}
else
}
else
{
- __pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
- __pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
__titleTextArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
__itemArea.width -= (headerLeftButtonWidth + buttonItemGap + headerRightButtonWidth);
{
if (__pButtonItems[RIGHT_BUTTON]->GetText() == L"")
{
- __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[RIGHT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerRightButtonWidth, vmargin,
headerRightButtonWidth, headerButtonItemHeight));
if (__style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || __style == TOOLBAR_TAB_WITH_TITLE)
{
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
- __itemArea.width -= (headerRightButtonWidth - leftTouchMargin - rightTouchMargin);
+ __itemArea.width -= (headerRightButtonWidth);
}
else
{
__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
- __titleTextArea.width -= (headerRightButtonWidth - leftTouchMargin - rightTouchMargin);
- __itemArea.width -= (headerRightButtonWidth - leftTouchMargin - rightTouchMargin);
+ __titleTextArea.width -= (headerRightButtonWidth);
+ __itemArea.width -= (headerRightButtonWidth);
}
}
else
}
else
{
- __pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[RIGHT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
__titleTextArea.width -= (headerRightButtonWidth);
__itemArea.width -= (headerRightButtonWidth);
{
if (__pButtonItems[LEFT_BUTTON]->GetText() == L"")
{
- __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerLeftButtonWidth + rightTouchMargin, vmargin,
+ __pButtonItems[LEFT_BUTTON]->SetBounds(FloatRectangle(__titleTextArea.width - headerLeftButtonWidth, vmargin,
headerLeftButtonWidth, headerButtonItemHeight));
if (__style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || __style == TOOLBAR_TAB_WITH_TITLE)
{
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, 0.0f, rightTouchMargin, 0.0f);
- __itemArea.width -= (headerLeftButtonWidth - leftTouchMargin - rightTouchMargin);
+ __itemArea.width -= (headerLeftButtonWidth);
}
else
{
__pButtonItems[LEFT_BUTTON]->SetTouchMargin(leftTouchMargin, topTouchMargin, rightTouchMargin, bottomTouchMargin);
- __titleTextArea.width -= (headerLeftButtonWidth - leftTouchMargin - rightTouchMargin);
- __itemArea.width -= (headerLeftButtonWidth - leftTouchMargin - rightTouchMargin);
+ __titleTextArea.width -= (headerLeftButtonWidth);
+ __itemArea.width -= (headerLeftButtonWidth);
}
}
else
}
else
{
- __pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
+ //__pButtonItems[LEFT_BUTTON]->SetTouchMargin(0.0f, topTouchMargin, 0.0f, bottomTouchMargin);
__titleTextArea.width -= (headerLeftButtonWidth);
__itemArea.width -= (headerLeftButtonWidth);
rightMargin = leftMargin;
- if (__itemCount == 1 || __itemCount == 2)
+ if (__itemCount == 1)
{
- leftMargin = footerLeftMargin;
- itemButtonLeftGap = footerLeftMargin;
- __itemArea.width -= ((leftMargin + iconSize + itemButtonLeftGap) * 2);
+ if (__pButtonItems[LEFT_BUTTON])
+ {
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ leftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= ((leftMargin + iconSize + itemButtonLeftGap) * 2);
+ }
+ else
+ {
+ leftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= (iconSize + itemButtonLeftGap + rightMargin);
+ }
+ }
+ else
+ {
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ rightMargin = footerLeftMargin;
+ itemButtonRightGap = footerLeftMargin;
+ __itemArea.width -= (itemButtonRightGap + iconSize + rightMargin);
+ }
- blockWidth[0] = blockWidth[1] = (__itemArea.width - dividerWidth) / 2;
+ iconSize = 0;
+ leftMargin = 0;
+ itemButtonLeftGap = 0;
+ }
+
+ blockWidth[0] = __itemArea.width;
+
+ __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0], segmentedItemHeight));
for (int i = 0; i < __itemCount ; i++)
{
- __pItems.at(i)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] * i + dividerWidth * i,
- (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[i], segmentedItemHeight));
-
if (__pItems.at(i)->GetChildCount() != 0)
{
_Label* existingBadgeIcon = dynamic_cast<_Label*>(__pItems.at(i)->GetChild(0));
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_FONT_SIZE, GetOrientation(), fontSize);
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_MULTILINE_FONT_SIZE, GetOrientation(), multilineFontSize);
}
- else if (__itemCount == 3)
+ else if ( __itemCount == 2)
{
if (__pButtonItems[LEFT_BUTTON])
{
{
leftMargin = footerLeftMargin;
itemButtonLeftGap = footerLeftMargin;
- __itemArea.width -= (leftMargin + iconSize + itemButtonLeftGap + rightMargin);
+ __itemArea.width -= (iconSize + itemButtonLeftGap + rightMargin);
}
}
else
{
rightMargin = footerLeftMargin;
itemButtonRightGap = footerLeftMargin;
- __itemArea.width -= (leftMargin + itemButtonRightGap + iconSize + rightMargin);
+ __itemArea.width -= (itemButtonRightGap + iconSize + rightMargin);
+ }
+
+ iconSize = 0;
+ leftMargin = 0;
+ itemButtonLeftGap = 0;
+ }
+
+ blockWidth[0] = blockWidth[1] = (__itemArea.width - dividerWidth) / 2;
+
+ __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0], segmentedItemHeight));
+ __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
+
+ for (int i = 0; i < __itemCount ; i++)
+ {
+ if (__pItems.at(i)->GetChildCount() != 0)
+ {
+ _Label* existingBadgeIcon = dynamic_cast<_Label*>(__pItems.at(i)->GetChild(0));
+
+ if (existingBadgeIcon)
+ {
+ existingBadgeIcon->SetPosition(FloatPoint(blockWidth[i] - existingBadgeIcon->GetSizeF().width, 0));
+ existingBadgeIcon = null;
+ }
+ }
+ }
+
+ GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_FONT_SIZE, GetOrientation(), fontSize);
+ GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_MULTILINE_FONT_SIZE, GetOrientation(), multilineFontSize);
+ }
+ else if (__itemCount == 3)
+ {
+ if (__pButtonItems[LEFT_BUTTON])
+ {
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ leftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= ((leftMargin + iconSize + itemButtonLeftGap) * 2);
}
else
{
- __itemArea.width -= leftMargin * 2;
+ leftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= (iconSize + itemButtonLeftGap + rightMargin);
+ }
+ }
+ else
+ {
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ rightMargin = footerLeftMargin;
+ itemButtonRightGap = footerLeftMargin;
+ __itemArea.width -= (itemButtonRightGap + iconSize + rightMargin);
}
+
iconSize = 0;
+ leftMargin = 0;
+ itemButtonLeftGap = 0;
}
blockWidth[0] = blockWidth[1] = blockWidth[2] = (__itemArea.width - dividerWidth * 2) / 3;
}
else if (__itemCount == 4)
{
- __itemArea.width -= leftMargin * 2;
+ leftMargin = 0;
blockWidth[0] = blockWidth[1] = blockWidth[2] = blockWidth[3] = (__itemArea.width - dividerWidth * 3) / 4;
_Toolbar::RearrangeButtonItems(void)
{
float itemHeight = 0.0f;
- float maxItemLength = 0.0f;
- float minItemLength = 0.0f;
- float iconSizeWithText = 0.0f;
float sideMargin = 0.0f;
- float topMargin = 0.0f;
float itemButtonLeftGap = 0.0f;
float itemButtonRightGap = 0.0f;
float tabLeftMargin = 0.0f;
GET_SHAPE_CONFIG(FOOTER::LEFT_MARGIN, GetOrientation(), footerLeftMargin);
GET_SHAPE_CONFIG(HEADER::TAB_LEFT_MARGIN, GetOrientation(), tabLeftMargin);
GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_SIDE_MARGIN, GetOrientation(), sideMargin);
- GET_SHAPE_CONFIG(HEADER::BUTTON_ITEM_ICON_TOP_MARGIN, GetOrientation(), topMargin);
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_HEIGHT, GetOrientation(), segmentedItemHeight);
GET_SHAPE_CONFIG(HEADER::LEFT_MARGIN, GetOrientation(), headerLeftMargin);
float tabRightMargin = tabLeftMargin;
- if (__style == TOOLBAR_TEXT || __style == TOOLBAR_ICON || __style == TOOLBAR_ICON_TEXT || __style == TOOLBAR_COMMAND)
- {
- GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_TEXT_HEIGHT, GetOrientation(), itemHeight);
- }
- else
- {
- itemHeight = GetSizeF().height;
- }
+ itemHeight = GetSizeF().height;
if (__itemCount == 1)
{
if (__style == TOOLBAR_TITLE) // item 1, HEADER_STYLE_TITLE_BUTTON
{
- blockWidth[0] = __titleTextArea.width;
- itemHeight = segmentedItemHeight;
- __pItems.at(0)->SetBounds(FloatRectangle(headerLeftMargin, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
- __pItems.at(0)->SetMargin(0.0f, 0.0f, 0.0f, 0.0f);
- }
- else
- {
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_WIDTH_1_MAX, GetOrientation(), maxItemLength);
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_WIDTH_1_MIN, GetOrientation(), minItemLength);
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetOrientation(), iconSizeWithText);
-
- if (!(__pItems.at(0)->GetBitmap(_BUTTON_STATUS_NORMAL) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_DISABLED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_PRESSED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_SELECTED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) == null)) // at least 1 bitmap
+ if (__pButtonItems[LEFT_BUTTON] || __pButtonItems[RIGHT_BUTTON])
{
- blockWidth[0] = textExtentSize_0 + iconSizeWithText + sideMargin * 3;
+ blockWidth[0] = __itemArea.width + headerLeftMargin;
}
else
{
- blockWidth[0] = textExtentSize_0 + sideMargin * 2;
+ blockWidth[0] = GetSizeF().width;
}
- if (blockWidth[0] > maxItemLength)
+ __pItems.at(0)->SetBounds(FloatRectangle(0, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
+ __pItems.at(0)->SetMargin(0.0f, 0.0f, 0.0f, 0.0f);
+ }
+ else
+ {
+ if (__pButtonItems[LEFT_BUTTON])
{
- blockWidth[0] = maxItemLength;
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ tabLeftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= ((tabLeftMargin + iconSize + itemButtonLeftGap) * 2);
+ }
+ else
+ {
+ tabLeftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= (tabLeftMargin + iconSize + itemButtonLeftGap + tabRightMargin);
+ }
}
- if (blockWidth[0] < minItemLength)
+ else
{
- blockWidth[0] = minItemLength;
- }
-
- tabLeftMargin = footerLeftMargin;
- itemButtonLeftGap = footerLeftMargin;
- __itemArea.width -= ((tabLeftMargin + iconSize + itemButtonLeftGap) * 2);
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ tabRightMargin = footerLeftMargin;
+ itemButtonRightGap = footerLeftMargin;
+ __itemArea.width -= (tabLeftMargin + itemButtonRightGap + iconSize + tabRightMargin);
+ }
- if (blockWidth[0] > __itemArea.width)
- {
- blockWidth[0] = __itemArea.width;
+ iconSize = 0;
}
- __pItems.at(0)->SetBounds(FloatRectangle((GetSizeF().width - blockWidth[0]) / 2, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
+ blockWidth[0] = __itemArea.width;
+
+ __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
}
for (int i = 0; i < __itemCount; i++)
}
else if(__itemCount == 2)
{
- float itemGap = 0.0f;
-
float textExtentSize_0 = __pItems.at(0)->GetTextExtentSizeF();
float textExtentSize_1 = __pItems.at(1)->GetTextExtentSizeF();
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_WIDTH_2_MAX, GetOrientation(), maxItemLength);
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_WIDTH_2_MIN, GetOrientation(), minItemLength);
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetOrientation(), iconSizeWithText);
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ITEM_GAP, GetOrientation(), itemGap);
-
- if (!(__pItems.at(0)->GetBitmap(_BUTTON_STATUS_NORMAL) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_DISABLED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_PRESSED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_SELECTED) == null
- && __pItems.at(0)->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) == null)) // at least 1 bitmap
- {
- blockWidth[0] = textExtentSize_0 + iconSizeWithText + sideMargin * 3;
- }
- else
- {
- blockWidth[0] = textExtentSize_0 + sideMargin * 2;
- }
-
- if (blockWidth[0] > maxItemLength)
- {
- blockWidth[0] = maxItemLength;
- }
- if (blockWidth[0] < minItemLength)
- {
- blockWidth[0] = minItemLength;
- }
-
- if (!(__pItems.at(1)->GetBitmap(_BUTTON_STATUS_NORMAL) == null
- && __pItems.at(1)->GetBitmap(_BUTTON_STATUS_DISABLED) == null
- && __pItems.at(1)->GetBitmap(_BUTTON_STATUS_PRESSED) == null
- && __pItems.at(1)->GetBitmap(_BUTTON_STATUS_SELECTED) == null
- && __pItems.at(1)->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) == null)) // at least 1 bitmap
+ if (__pButtonItems[LEFT_BUTTON])
{
- blockWidth[1] = textExtentSize_1 + iconSizeWithText + sideMargin * 3;
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ tabLeftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= ((tabLeftMargin + iconSize + itemButtonLeftGap) * 2);
+ }
+ else
+ {
+ tabLeftMargin = footerLeftMargin;
+ itemButtonLeftGap = footerLeftMargin;
+ __itemArea.width -= (tabLeftMargin + iconSize + itemButtonLeftGap + tabRightMargin);
+ }
}
else
{
- blockWidth[1] = textExtentSize_1 + sideMargin * 2;
- }
-
- if (blockWidth[1] > maxItemLength)
- {
- blockWidth[1] = maxItemLength;
- }
- if (blockWidth[1] < minItemLength)
- {
- blockWidth[1] = minItemLength;
- }
-
- tabLeftMargin = footerLeftMargin;
- itemButtonLeftGap = footerLeftMargin;
- __itemArea.width -= ((tabLeftMargin + iconSize + itemButtonLeftGap) * 2);
-
- if (blockWidth[0] > (__itemArea.width - itemGap * 2) / 2)
- {
- blockWidth[0] = (__itemArea.width - itemGap * 2) / 2;
- }
+ if (__pButtonItems[RIGHT_BUTTON])
+ {
+ tabRightMargin = footerLeftMargin;
+ itemButtonRightGap = footerLeftMargin;
+ __itemArea.width -= (tabLeftMargin + itemButtonRightGap + iconSize + tabRightMargin);
+ }
- if (blockWidth[1] > (__itemArea.width - itemGap * 2) / 2)
- {
- blockWidth[1] = (__itemArea.width - itemGap * 2) / 2;
+ iconSize = 0;
}
- if (blockWidth[0] < blockWidth[1])
- {
- blockWidth[0] = blockWidth[1];
- }
- else
- {
- blockWidth[1] = blockWidth[0];
- }
+ blockWidth[0] = blockWidth[1] = (__itemArea.width - dividerWidth * 1) / 2;
- __pItems.at(0)->SetBounds(FloatRectangle(GetSizeF().width / 2 - itemGap - blockWidth[0], (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
- __pItems.at(1)->SetBounds(FloatRectangle(GetSizeF().width / 2 + itemGap, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
+ __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
+ __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
for (int i = 0; i < __itemCount; i++)
{
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_NORMAL, $B052L6);
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_DISABLED, $B052L6);
- ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_PRESSED, $B052L6P);
+ ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_PRESSED, $B052L6);
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_HIGHLIGHTED, $B052L6);
- ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6P);
+ ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6);
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8D);
- ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_PRESSED, $B052L8P);
+ ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_PRESSED, $B052L8);
ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_HIGHLIGHTED, $B052L8);
- ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_SELECTED, $B052L8P);
+ ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_SELECTED, $B052L8);
ADD_COLOR_CONFIG(TAB_ITEM_BG_NORMAL, $B0511);
ADD_COLOR_CONFIG(TAB_ITEM_BG_DISABLED, $B0511);
ADD_COLOR_CONFIG(TAB_ITEM_TEXT_NORMAL, $B052L6);
ADD_COLOR_CONFIG(TAB_ITEM_TEXT_DISABLED, $B052L6);
- ADD_COLOR_CONFIG(TAB_ITEM_TEXT_PRESSED, $B052L6P);
+ ADD_COLOR_CONFIG(TAB_ITEM_TEXT_PRESSED, $B052L6);
ADD_COLOR_CONFIG(TAB_ITEM_TEXT_HIGHLIGHTED, $B052L6);
- ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6P);
+ ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6);
ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8D);
- ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_PRESSED, $B052L8P);
+ ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_PRESSED, $B052L8);
ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_HIGHLIGHTED, $B052L8);
- ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_SELECTED, $B052L8P);
+ ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_SELECTED, $B052L8);
- ADD_COLOR_CONFIG(BUTTON_ITEM_BG_NORMAL, $W011);
- ADD_COLOR_CONFIG(BUTTON_ITEM_BG_DISABLED, $W011);
- ADD_COLOR_CONFIG(BUTTON_ITEM_BG_PRESSED, $B042);
+ ADD_COLOR_CONFIG(BUTTON_ITEM_BG_NORMAL, $B0511);
+ ADD_COLOR_CONFIG(BUTTON_ITEM_BG_DISABLED, $B0511);
+ ADD_COLOR_CONFIG(BUTTON_ITEM_BG_PRESSED, $B0514P1);
ADD_COLOR_CONFIG(BUTTON_ITEM_BG_HIGHLIGHTED, $W161);
ADD_COLOR_CONFIG(BUTTON_ITEM_TRANSLUCENT_BG_NORMAL, $B013);
ADD_COLOR_CONFIG(DIVIDER_LINE_LEFT_TRANSLUCENT_NORMAL, $B0227);
ADD_COLOR_CONFIG(DIVIDER_LINE_RIGHT_TRANSLUCENT_NORMAL, $B0228);
+ ADD_COLOR_CONFIG(SELECTED_BAR_BG_NORMAL, $B052L6P);
+ ADD_COLOR_CONFIG(SELECTED_BAR_TRANSLUCENT_BG_NORMAL, $B052L6P);
+
// BITMAP
ADD_IMAGE_CONFIG(BG_NORMAL, #00_title_bg.#.png);
ADD_IMAGE_CONFIG(TRANSLUCENT_BG_NORMAL, #00_title_bg.#.png);
ADD_SHAPE_CONFIG(BUTTON_ITEM_HEIGHT, 96);
ADD_SHAPE_CONFIG(BUTTON_ITEM_GAP, 2);
ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_TOP_MARGIN, 10.5);
+ //ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_TOP_MARGIN, 0);
ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_SIZE, 63);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_LEFT_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_RIGHT_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_BOTTOM_TOUCH_MARGIN, 0);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_LEFT_TOUCH_MARGIN, 26);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_TOUCH_MARGIN, 16.5);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_RIGHT_TOUCH_MARGIN, 26);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_BOTTOM_TOUCH_MARGIN, 16.5);
ADD_SHAPE_CONFIG(SIP_BUTTON_ITEM_LEFT_TOUCH_MARGIN, 26);
ADD_SHAPE_CONFIG(SIP_BUTTON_ITEM_TOP_TOUCH_MARGIN, 16.5);
ADD_SHAPE_CONFIG(COMMON_MINIMUM_MARGIN, 8);
ADD_SHAPE_CONFIG(TAB_LARGE_HEIGHT, 126);
+ ADD_SHAPE_CONFIG(TAB_LARGE_TOP_MARGIN, 15);
+ ADD_SHAPE_CONFIG(TAB_LARGE_TEXT_HEIGHT, 34);
END_UI_CONFIG_MODE(720x1280);
ADD_SHAPE_CONFIG(BUTTON_ITEM_HEIGHT, 91);
ADD_SHAPE_CONFIG(BUTTON_ITEM_GAP, 2);
ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_TOP_MARGIN, 8);
+ //ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_TOP_MARGIN, 0);
ADD_SHAPE_CONFIG(BUTTON_ITEM_ICON_SIZE, 63);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_LEFT_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_RIGHT_TOUCH_MARGIN, 0);
- ADD_SHAPE_CONFIG(BUTTON_ITEM_BOTTOM_TOUCH_MARGIN, 0);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_LEFT_TOUCH_MARGIN, 26);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_TOP_TOUCH_MARGIN, 14);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_RIGHT_TOUCH_MARGIN, 26);
+ ADD_SHAPE_CONFIG(BUTTON_ITEM_BOTTOM_TOUCH_MARGIN, 14);
ADD_SHAPE_CONFIG(SIP_BUTTON_ITEM_LEFT_TOUCH_MARGIN, 26);
ADD_SHAPE_CONFIG(SIP_BUTTON_ITEM_TOP_TOUCH_MARGIN, 14);
ADD_SHAPE_CONFIG(COMMON_MINIMUM_MARGIN, 8);
ADD_SHAPE_CONFIG(TAB_LARGE_HEIGHT, 126);
+ ADD_SHAPE_CONFIG(TAB_LARGE_TOP_MARGIN, 15);
+ ADD_SHAPE_CONFIG(TAB_LARGE_TEXT_HEIGHT, 34);
END_UI_CONFIG_MODE(1280x720);
}