{
if (IsIndicatorTranslucent())
{
- r = SetIndicatorOpacity(_INDICATOR_OPACITY_OPAQUE);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ FloatRectangle bounds(0.0f, 0.0f, GetClientBoundsF().width, __pHeader->GetBoundsF().height);
+ SetHeaderBounds(bounds);
+ }
+ else
+ {
+ FloatRectangle bounds(0.0f, GetIndicatorBoundsF().height, GetClientBoundsF().width, __pHeader->GetBoundsF().height);
+ SetHeaderBounds(bounds);
+ }
+ }
+ else if (!IsIndicatorTranslucent() && !IsHeaderTranslucent())
+ {
+ FloatRectangle bounds(0.0f, GetIndicatorBoundsF().height, GetClientBoundsF().width, __pHeader->GetBoundsF().height);
+ SetHeaderBounds(bounds);
+ }
+ else
+ {
+ if (GetOrientation() == _CONTROL_ORIENTATION_PORTRAIT)
+ {
+ FloatRectangle bounds(0.0f, GetIndicatorBoundsF().height, GetClientBoundsF().width, __pHeader->GetBoundsF().height);
+ SetHeaderBounds(bounds);
+ }
+ else
+ {
+ FloatRectangle bounds(0.0f, 0.0f, GetClientBoundsF().width, __pHeader->GetBoundsF().height);
+ SetHeaderBounds(bounds);
}
}
}
{
FloatRectangle indicatorBounds = GetIndicatorBoundsF();
adjHeight = indicatorBounds.height;
+
+ if (IsIndicatorTranslucent())
+ {
+ if (!IsHeaderTranslucent())
+ {
+ adjHeight = 0.0f;
+ }
+ else
+ {
+ if (GetOrientation() == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ adjHeight = 0.0f;
+ }
+ }
+ }
}
FloatRectangle bounds = __pHeader->GetBoundsF();
bounds.y = adjHeight;
{
FloatRectangle indicatorBounds = GetIndicatorBoundsF();
adjHeight = indicatorBounds.height;
+
+ if (IsIndicatorTranslucent())
+ {
+ if (!IsHeaderTranslucent())
+ {
+ adjHeight = 0.0f;
+ }
+ else
+ {
+ if (GetOrientation() == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ adjHeight = 0.0f;
+ }
+ }
+ }
}
FloatRectangle bounds = __pHeader->GetBoundsF();
bounds.y = adjHeight;
if (IsIndicatorVisible())
{
indicatorFloatBounds = GetIndicatorBoundsF();
+ if (IsIndicatorTranslucent())
+ {
+ if (!IsHeaderTranslucent())
+ {
+ indicatorFloatBounds.height = 0.0f;
+ }
+ else
+ {
+ if (GetOrientation() == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ indicatorFloatBounds.height = 0.0f;
+ }
+ }
+ }
}
toolbarBounds = GetHeader()->GetBoundsF();
GetCore().SetHeader(&pHeader->GetCore());
GetCore().AdjustClientBounds();
+ if (GetCore().IsIndicatorTranslucent())
+ {
+ if (!GetCore().IsHeaderTranslucent())
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ else
+ {
+ if (GetOrientation() == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ }
+ }
+
FloatRectangle bounds(0.0f, indicatorBounds.height, GetClientBoundsF().width, GetCore().GetToolbarHeightF(true));
GetCore().SetHeaderBounds(bounds);
if (GetCore().IsIndicatorVisible())
{
indicatorBounds = GetCore().GetIndicatorBoundsF();
+ if (GetCore().IsIndicatorTranslucent())
+ {
+ if (!GetCore().IsHeaderTranslucent())
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ else
+ {
+ if (orientation == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ }
+ }
}
FloatRectangle bounds(0.0f, indicatorBounds.height, GetClientBoundsF().width, GetCore().GetToolbarHeightF(true));
if (pHeader)
{
+ if (GetCore().IsIndicatorTranslucent())
+ {
+ if (!GetCore().IsHeaderTranslucent())
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ else
+ {
+ if (GetCore().GetOrientation() == _CONTROL_ORIENTATION_LANDSCAPE)
+ {
+ indicatorBounds.height = 0.0f;
+ }
+ }
+ }
FloatRectangle bounds(0.0f, indicatorBounds.height, GetClientBoundsF().width, GetCore().GetToolbarHeightF(true));
GetCore().SetHeaderBounds(bounds);
}