<?if portrait?>
  <define wb_leftButton="##60" wb_lineHeight="##14"/>
<?endif portrait?>
<?if landscape?>
  <define wb_leftButton="##55" wb_lineHeight="##14"/>
<?endif landscape?>                                                                      

  <material id="_m.nvw.line.v" path="AppNavibar\line_v.png" flags="MfReplaceFunction MfColor MfAoBlendByTexture MfWmClampToEdge MfExpand" groupid="TgIDUI" tc="bmp_expand_only"/>

  <gradient id="fill.nv.wait.background" colors="FD292e44 E3000000" positions="00 ff"/>
  <gradient id="fill.nv.wait.gradRight" colors="20AFABAF 60AFABAF" positions="00 ff" orientation="horizontal"/>
  <gradient id="fill.nv.wait.gradCenter" colors="20AFABAF 60AFABAF" positions="00 ff" orientation="vertical"/>

  <gradient id="fill.sat.back"   colors="8011141a 801e232d" positions="00 ff"/>
  <gradient id="fill.sat.green"  colors="ffc3ec06 ffa8cc00" positions="00 ff"/>
  <gradient id="fill.sat.silver" colors="ffededed ffbdbdbd" positions="00 ff"/>
  <gradient id="fill.sat.gray"   colors="ff909090 ff676767" positions="00 ff"/>
  <gradient id="fill.sat.red"    colors="80df3131 80df3131" positions="00 ff"/>

  <!-- <material id="bmp.nv.wait.menu(?)" path="GuiOverlay\menubutton(?).png" flags="MfReplaceFunction MfAoBlendByTexture MfWmClampToEdge MfExpand" groupid="TgIDUI" tc="bmp_expand_only"/> -->

  <!--### ui3d signalStatus -->
  <font id="font.ui3d.signalStatus"  name="bold"  nameBorder="NONE" scale="nouser" size="14"  leading="14"/>
  <textStyle id="text.ui3d.signalStatus" color="pen.text3D_nieco1" count="1" font1="font.ui3d.signalStatus"/>

  <shape3d id="nv.wait.background" material="mat.genTransparentBlend" gradient="fill.nv.wait.background"/>

  <!-- C3DWnd Signal Status-->
  <gradient id="fill.nv.wait.shp.shadow" colors="00000000 10000000" positions="00 ff"/>
  <shape3d id="nv.wait.shp.shadow" position="pos.nv.wait.shp.shadow" material="mat.genTransparentBlend" gradient="fill.nv.wait.shp.shadow"/>
  <positionFix id="pos.nv.wait.shp.shadow" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="=##-20" relatY1="0" deltaY2="0" relatY2="0"/>

  <wnd3d id="nv.bar.wait.status" position="pos.nv.bar.wait.status" static1Bck="ui3d.bar.signalStatus.static1Bck" static1="ui3d.bar.signalStatus.static" static2="ui3d.bar.signalStatus.detail.static" satellites="ui3d.bar.satSignal"/>
	
  <wnd3d id="ui3d.bar.satSignal"                         position="pos.ui3d.bar.satSignal" spacing="0.9" material="NONE" fills="fill.sat.back, fill.sat.red, fill.sat.silver, fill.sat.green"/>
  <static3d id="ui3d.bar.signalStatus.static"            position="pos.ui3d.bar.signalStatus.static" textstyle="text.ui3d.signalStatus" align="left" valign="center" multiLine="yes" text=""/>
  <shape3d id="ui3d.bar.signalStatus.static1Bck"         material="bmp.uiSignal" rubber="$8,16,$8;$8,16,$8"/>
  <static3d id="ui3d.bar.signalStatus.detail.static"     position="pos.ui3d.bar.signalStatus.static" textstyle="text.ui3d.signalStatus" align="left" valign="center" multiLine="yes" text=""/>

<?if portrait?>
  <positionFix id="pos.nv.bar.wait.status"                  deltaX1="=($wb_leftButton)" relatX1="0" deltaX2="=-($nv_menuWidth)" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <positionFix id="pos.ui3d.bar.signalContainer"			deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0.6" deltaY2="0" relatY2="1"/>
  <positionFix id="pos.ui3d.bar.satSignal"                  deltaX1="=##5" relatX1="0" deltaX2="=##100" relatX2="0" deltaY1="=##12" relatY1="0" deltaY2="0" relatY2="0.5"/>
  <positionFix id="pos.ui3d.bar.signalStatus.static"        deltaX1="=##5" relatX1="0" deltaX2="=-##5" relatX2="1" deltaY1="=-##10" relatY1="0" deltaY2="=($wb_lineHeight)*3" relatY2="0" reference="pos.ui3d.bar.signalContainer"/>

<?endif portrait?>
<?if landscape?>
  <positionFix id="pos.nv.bar.wait.status"                  deltaX1="=($wb_leftButton)" relatX1="0" deltaX2="=-($nv_menuWidth)" relatX2="1" deltaY1="=##8" relatY1="0" deltaY2="=-##8" relatY2="1"/>
  <positionFix id="pos.ui3d.bar.satSignal"                  deltaX1="=##10" relatX1="0" deltaX2="=##100" relatX2="0" deltaY1="=##6" relatY1="0" deltaY2="=##-4" relatY2="1"/>
  <positionFix id="pos.ui3d.bar.signalStatus.static"        deltaX1="=##110" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0.1" deltaY2="=($wb_lineHeight)*3" relatY2="0.1"/>
<?endif landscape?>

  <button3d id="nv.bar.wait.btnMenu" position="pos.nv.bar.wait.btnMenu" children="nv.wait.btnMenu.icon" children_="nv.wait.btnMenu.grad, nv.wait.btnMenu.icon"/>

  <button3d id="nv.bar.wait.btnOver" position="pos.nv.bar.wait.btnOver" children="" children_="nv.wait.btnWait.grad"/>

  <?if portrait?>
    <positionFix id="pos.nv.bar.wait.btnMenu" reference="pos.nv.bar.wait.bottomBar" deltaX1="=-($nv_menuWidth)" relatX1="1" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
    <positionFix id="pos.nv.wait.btnMenu.icon" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
    <positionFix id="pos.nv.bar.wait.btnOver" reference="pos.nv.bar.wait.bottomBar" deltaX1="=($wb_leftButton)" relatX1="0" deltaX2="=-($nv_menuWidth)" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <?endif portrait?>
  <?if landscape?>
    <positionFix id="pos.nv.bar.wait.btnMenu" reference="pos.nv.bar.wait.bottomBar" deltaX1="=-($nv_menuWidth)" relatX1="1" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
    <positionFix id="pos.nv.wait.btnMenu.icon" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
    <positionFix id="pos.nv.bar.wait.btnOver" reference="pos.nv.bar.wait.bottomBar" deltaX1="=($wb_leftButton)" relatX1="0" deltaX2="=-($nv_menuWidth)" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <?endif landscape?>

  <shape3d id="nv.wait.btnWait.grad" material="mat.genTransparentBlend" gradient="fill.nv.wait.gradCenter"/>
  <shape3d id="nv.wait.btnMenu.grad" material="mat.genTransparentBlend" gradient="fill.nv.wait.gradRight"/>
  <shape3d id="nv.wait.btnMenu.icon" position="pos.nv.wait.btnMenu.icon" material="bmp.nv.edit.menu" align="center" valign="center"/>

    
<?if portrait?>
  <wnd3d id="nv.wait.bottomBar" position="pos.nv.bar.wait.bottomBar" shapes="nv.wait.background, nv.wait.shp.shadow, nv.bar.wait.shp.vertical1, nv.bar.wait.shp.vertical2"/>

  <shape3d id="nv.bar.wait.shp.vertical1" position="pos.nv.bar.wait.shp.vertical1" material="_m.nvw.line.v"/>
  <shape3d id="nv.bar.wait.shp.vertical2" position="pos.nv.bar.wait.shp.vertical2" material="_m.nvw.line.v"/>

  <positionFix id="pos.nv.bar.wait.bottomBar" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="=-($pd_bottomBarHeight)" relatY1="1" deltaY2="0" relatY2="1"/>
  <positionFix id="pos.nv.bar.wait.shp.vertical1" reference="pos.nv.bar.wait.status" deltaX1="0" relatX1="0" deltaX2="2" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <positionFix id="pos.nv.bar.wait.shp.vertical2" reference="pos.nv.bar.wait.status" deltaX1="0" relatX1="1" deltaX2="2" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif portrait?>
<?if landscape?>
  <wnd3d id="nv.wait.bottomBar" position="pos.nv.bar.wait.bottomBar" shapes="nv.wait.background, nv.wait.shp.shadow, nv.bar.wait.shp.vertical1, nv.bar.wait.shp.vertical2"/>

  <positionFix id="pos.nv.bar.wait.bottomBar" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="=-($pd_bottomBarHeight)" relatY1="1" deltaY2="0" relatY2="1"/>

  <shape3d id="nv.bar.wait.shp.vertical1" position="pos.nv.bar.wait.shp.vertical1" material="_m.nvw.line.v"/>
  <shape3d id="nv.bar.wait.shp.vertical2" position="pos.nv.bar.wait.shp.vertical2" material="_m.nvw.line.v"/>
  <positionFix id="pos.nv.bar.wait.shp.vertical1" deltaX1="=($wb_leftButton)" relatX1="0" deltaX2="=($wb_leftButton)+2" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <positionFix id="pos.nv.bar.wait.shp.vertical2" deltaX1="=-($nv_menuWidth)" relatX1="1" deltaX2="=-($nv_menuWidth)+2" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif landscape?>

<material id="_m.nvw.search.icon(?)" path="AppNavibar\search(?).png" flags="MfReplaceFunction MfColor MfAoBlendByTexture MfWmClampToEdge MfExpand" groupid="TgIDUI" tc="bmp_expand_only"/>
<button3d id="nv.bar.wait.btnSearch" position="pos.nv.bar.wait.btnSearch" children="nv.wait.btnSearch.icon" children_="nv.wait.btnMenu.grad, nv.wait.btnSearch.icon"/>
<shape3d id="nv.wait.btnSearch.grad" material="mat.genTransparentBlend" gradient="fill.nv.wait.gradRight"/>
<shape3d id="nv.wait.btnSearch.icon" material="_m.nvw.search.icon" align="center" valign="center"/>
<?if portrait?>
  <positionFix id="pos.nv.bar.wait.btnSearch" deltaX1="0" relatX1="0" deltaX2="=($wb_leftButton)" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif portrait?>
<?if landscape?>
  <positionFix id="pos.nv.bar.wait.btnSearch" deltaX1="0" relatX1="0" deltaX2="=($wb_leftButton)" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif landscape?>

<!-- TODO: REMOVE  -->
<!-- C3DWnd Watch button -->
<button3d id="nv.bar.wait.btnWatch" position="pos.nv.bar.wait.btnWatch" items="nv.wait.btnWatch.back, nv.wait.btnWatch.icon" colors="pen.watch.start, pen.watch.lap, pen.watch.end, pen.watch.reset" children_="nv.wait.btnMenu.grad"/>
<static3d id="nv.wait.btnWatch.back" position="pos.nv.bar.wait.btnWatch.icon" align="center" valign="center" color="pen.text3D_nieco9" font="font.icon.20" text="\xE9B9"/>
<static3d id="nv.wait.btnWatch.icon" position="pos.nv.bar.wait.btnWatch.icon" align="center" valign="center" color="pen.text3D_nieco1" font="font.icon.20" text=""/>
<positionFix id="pos.nv.bar.wait.btnWatch.icon"	deltaX1="=##2" relatX1="0" deltaX2="=##-2" relatX2="1" deltaY1="=##8" relatY1="0" deltaY2="=##-2" relatY2="1"/>
<?if portrait?>
  <positionFix id="pos.nv.bar.wait.btnWatch" deltaX1="0" relatX1="0" deltaX2="=($wb_leftButton)" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif portrait?>
<?if landscape?>
  <positionFix id="pos.nv.bar.wait.btnWatch" deltaX1="0" relatX1="0" deltaX2="=($wb_leftButton)" relatX2="0" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
<?endif landscape?>
<!-- /C3DWnd Watch button -->
<!-- /TODO: REMOVE  -->

