}
}
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_FONT_SIZE, GetOrientation(), fontSize);//32
+ if (__style == TOOLBAR_TITLE) // item 1, HEADER_STYLE_TITLE_BUTTON
+ {
+ GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_FONT_SIZE, GetOrientation(), fontSize); // 30
+ }
+ else
+ {
+ GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_FONT_SIZE, GetOrientation(), fontSize); //32
+ }
for (int i = 0; i < __itemCount; i++)
{
}
}
- //__pItems.at(i)->SetMargin(__pItems.at(i)->GetLeftMarginF(), 0.0f, __pItems.at(i)->GetRightMarginF(), 0.0f);
__pItems.at(i)->SetTextSize(fontSize, FONT_STYLE_BOLD);
__pItems.at(i)->SetMultilineTextSize(multilineFontSize);
}
itemBounds = __pToolbar->GetItem(0)->GetBoundsF();
if (itemBounds.x + distance > 0.0f)
{
- distance = itemBounds.x - distance;
+ distance = 0.0f;
}
}
else
itemBounds = __pToolbar->GetItem(itemCount - 4)->GetBoundsF();
if (itemBounds.x + distance < 0.0f)
{
- distance = itemBounds.x - distance;
+ distance = 0.0f;
}
}