Skip to content

Commit

Permalink
flip gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Apr 2, 2024
1 parent 86fdd8e commit 92b07da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/svg_generator/svg_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ async def generate_map(time, output_file, show_alert_info=False, show_weather_in
>
<defs>
<linearGradient id="weather" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#9400FF" />
<stop offset="0%" stop-color="#FF0000" />
<stop offset="50%" stop-color="#00FF4A" />
<stop offset="100%" stop-color="#FF0000" />
<stop offset="100%" stop-color="#9400FF" />
</linearGradient>
</defs>
Expand All @@ -231,9 +231,9 @@ async def generate_map(time, output_file, show_alert_info=False, show_weather_in
<text x="35" y="535" font-family="Arial" font-size="16" fill="white" visibility="{"visible" if show_alert_info else "hidden"}">- вибухи за даним зі ЗМІ (до 3 хв. тому)</text>
<rect x="40" y="430" width="30" height="150" fill="url(#weather)" visibility="{"visible" if show_weather_info else "hidden"}" />
<text x="80" y="445" font-family="Arial" font-size="20" fill="white" visibility="{"visible" if show_weather_info else "hidden"}">-10°C</text>
<text x="86" y="445" font-family="Arial" font-size="20" fill="white" visibility="{"visible" if show_weather_info else "hidden"}">30°C</text>
<text x="86" y="513" font-family="Arial" font-size="20" fill="white" visibility="{"visible" if show_weather_info else "hidden"}">10°C</text>
<text x="86" y="580" font-family="Arial" font-size="20" fill="white" visibility="{"visible" if show_weather_info else "hidden"}">30°C</text>
<text x="80" y="580" font-family="Arial" font-size="20" fill="white" visibility="{"visible" if show_weather_info else "hidden"}">-10°C</text>
<rect x="10" y="620" width="60" height="20" fill="#005BBB" />
<rect x="10" y="640" width="60" height="20" fill="#FEDF00" />
Expand Down

0 comments on commit 92b07da

Please sign in to comment.