<!DOCTYPE svg PUBLIC "-//SIEMENS//DTD SVG 1.0 TIA-HMI//EN" "http://tia.siemens.com/graphics/svg/1.4/dtd/svg14-hmi.dtd">
<!-- SIMATIC WINCC Copyright (C) Siemens AG 2017. All Rights Reserved. -->

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:hmi-bind--xlink="http://svg.siemens.com/hmi/bind/xlink/"
     xmlns:hmi="http://svg.siemens.com/hmi/"
     xmlns:hmi-bind="http://svg.siemens.com/hmi/bind/"
     xmlns:hmi-element="http://svg.siemens.com/hmi/element/"
     xmlns:hmi-feature="http://svg.siemens.com/hmi/feature/"
     xmlns:hmi-event="http://svg.siemens.com/hmi/event/"
     viewBox="0 0 256 300"
     preserveAspectRatio="none">

	<hmi:self type="widget" displayName="SysDiag_SignalLamp" name="extended.SysDiag_SignalLamp" version="1.0.1" performanceClass="S">
	 <hmi:paramDef name="ColorStateXUncertain"    type="HmiColor"  default="0xFFb4b4b4"  />
	 <hmi:paramDef name="ColorState1Good"         type="HmiColor"  default="0xFF2eb72e"  />
	 <hmi:paramDef name="ColorState2Maintenance"  type="HmiColor"  default="0xFFffec00"  />
	 <hmi:paramDef name="ColorState3Error"        type="HmiColor"  default="0xFFd4091c"  />	
	 <hmi:paramDef name="State"         		      type="enum"    default="0">
      <hmi:enum-member name ="Uncertain" value ="0" />
      <hmi:enum-member name ="Good" value ="1" />
      <hmi:enum-member name ="Maintenance" value ="2" />
      <hmi:enum-member name ="Error" value ="3" />
   </hmi:paramDef>
  <hmi:paramDef name="LightOff"         	type="boolean" 	 default="false"/>
    </hmi:self>

    <defs>
		<hmi:localDef name="Color" type="HmiColor" hmi-bind:value="{{ eq(ParamProps.State, 1) ? ParamProps.ColorState1Good : ( eq(ParamProps.State, 2) ? ParamProps.ColorState2Maintenance : ( eq(ParamProps.State, 3) ? ParamProps.ColorState3Error : ParamProps.ColorStateXUncertain ) ) }}"  />
    </defs>
	 
  <g id="Lamp_Base" >
    <linearGradient id="Shape_2_" gradientUnits="userSpaceOnUse" x1="9.8154" y1="220.6973" x2="246.1875" y2="220.6973">
      <stop offset="0" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0310))}}" />
      <stop offset="7.959154e-02" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0239))}}" />
      <stop offset="0.2394" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0051))}}" />
      <stop offset="0.2454" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0043))}}" />
      <stop offset="0.5107" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0157))}}" />
      <stop offset="0.8207" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0267))}}" />
      <stop offset="1" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0310))}}" />
    </linearGradient>
    <path id="Shape_1_" fill="url(#Shape_2_)" hmi-bind:stroke="{{Converter.RGBA(LocalProps.Color)}}" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M9.8,243.7v-33.9c0-6.6,5.4-12,12-12h212.3c6.7,0,12,5.4,12,12v33.9H9.8z" />
    <linearGradient id="Reflection_Vertical_1_" gradientUnits="userSpaceOnUse" x1="32.5898" y1="220.8301" x2="51.5553" y2="220.8301">
      <stop offset="0" stop-color="#F2F2F2" stop-opacity="0.4" />
      <stop offset="1" stop-color="#F7F7F7" stop-opacity="0.7" />
    </linearGradient>
    <path id="Reflection_Vertical" fill="url(#Reflection_Vertical_1_)" d="M43.5,198.6c-9.9,0-9.5,11.1-9.5,11.1V243h40.4v-33.3   c0-8,5.3-11.1,5.3-11.1H43.5z" />
    <linearGradient id="Reflection_Horizontal_1_" gradientUnits="userSpaceOnUse" x1="17.2085" y1="203.833" x2="241.7542" y2="203.833">
      <stop offset="0" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0129))}}" />
      <stop offset="0.1179" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0059))}}" />
      <stop offset="0.1954" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0000))}}" />
      <stop offset="0.819" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0241))}}" />
      <stop offset="1" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0316))}}" />
    </linearGradient>
    <path id="Reflection_Horizontal" fill="url(#Reflection_Horizontal_1_)" d="M233.4,198.2H22.9c-12.3,0-12.4,10.9-12.4,11.2h235.4   C245.8,209.1,245.7,198.2,233.4,198.2z" />
  </g>
  <g id="Lamp">
    <linearGradient id="Shape_3_" gradientUnits="userSpaceOnUse" x1="21.7168" y1="100.0488" x2="234.2871" y2="100.0488">
      <stop offset="0" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0310))}}" />
      <stop offset="7.959154e-02" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0239))}}" />
      <stop offset="0.2394" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0051))}}" />
      <stop offset="0.2454" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0043))}}" />
      <stop offset="0.5107" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0157))}}" />
      <stop offset="0.8207" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0267))}}" />
      <stop offset="1" hmi-bind:stop-color="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0310))}}" />
    </linearGradient>
    <path id="Shape" fill="url(#Shape_3_)" hmi-bind:stroke="{{Converter.RGBA(LocalProps.Color)}}" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M234.3,197.7V33c0-16.9-13.8-30.6-30.6-30.6H52.4C35.5,2.4,21.7,16.2,21.7,33v164.7H234.3z" />
    <linearGradient id="Reflection_1_" gradientUnits="userSpaceOnUse" x1="47.834" y1="100.1816" x2="61.121" y2="100.1816">
      <stop offset="0" stop-color="#F2F2F2" stop-opacity="0.4" />
      <stop offset="1" stop-color="#F7F7F7" stop-opacity="0.7" />
    </linearGradient>
    <path id="Reflection" fill="url(#Reflection_1_)" d="M67.7,3.2c-23.5,0-24.2,27-24.2,27v167h36.3v-167c0-19.8,13.8-27,13.8-27H67.7   z" />
  </g>
  <path id="Dark_Reflections" hmi-bind:fill="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0400))}}" hmi-bind:stroke="{{Converter.RGBA(Converter.Darker(LocalProps.Color, 0.0400))}}" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M234.3,197.7H21.7V192h212.6V197.7z M203.6,2.4h-0.5c11.3,4.7,19.2,16,19.2,29.1V192h11.9V33C234.3,16.2,220.5,2.4,203.6,2.4z   M234.1,197.7h-5.7c3.9,2.2,6.6,6.5,6.6,11.6v34.3h11.2v-33.9C246.2,203.1,240.8,197.7,234.1,197.7z" />
  <linearGradient id="Electric_Case_1_" gradientUnits="userSpaceOnUse" x1="9.6509" y1="270.6797" x2="246.8051" y2="270.6797">
    <stop offset="0" stop-color="#575756" />
    <stop offset="1.127913e-02" stop-color="#5D5C5C" />
    <stop offset="8.322689e-02" stop-color="#797878" />
    <stop offset="0.1552" stop-color="#8D8D8C" />
    <stop offset="0.2267" stop-color="#999998" />
    <stop offset="0.2971" stop-color="#9D9D9C" />
    <stop offset="0.4984" stop-color="#787878" />
    <stop offset="0.7008" stop-color="#5B5B5B" />
    <stop offset="0.8752" stop-color="#494949" />
    <stop offset="1" stop-color="#424242" />
  </linearGradient>
  <path id="Electric_Case" fill="url(#Electric_Case_1_)" stroke="#424242" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M239.7,292c-1,3.1-4.5,5.7-7.7,5.7H26.3c-3.2,0-6.7-2.6-7.7-5.7L2.5,249.4c-1-3.1,0.8-5.7,4-5.7h243.1c3.2,0,5,2.6,4,5.7L239.7,292z" />
  <g id="Lamp_Overlay" hmi-bind:display="{{ ParamProps.LightOff ? 'inline' : 'none' }}">
    <path id="Shape_4_" fill="#0E0E0E" stroke="#0E0E0E" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" fill-opacity="0.5" stroke-opacity="0.5" d="M 52.400391 2.4003906 C 35.500391 2.4003906 21.699219 16.2 21.699219 33 L 21.699219 197.69922 L 234.30078 197.69922 L 234.30078 33 C 234.30078 16.1 220.49922 2.4003906 203.69922 2.4003906 L 52.400391 2.4003906 z M 21.800781 197.80078 C 15.200781 197.80078 9.8007812 203.20078 9.8007812 209.80078 L 9.8007812 243.69922 L 246.09961 243.69922 L 246.09961 209.80078 C 246.09961 203.20078 240.79961 197.80078 234.09961 197.80078 L 21.800781 197.80078 z " />
  </g>
</svg>