From e70f34ec274348a7b4b8b160f7c0c379e46d1fe3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Tue, 24 Sep 2024 22:23:32 +0200
Subject: [PATCH] railway-infrastructure: add a white casing

---
 railway-infrastructure.yaml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/railway-infrastructure.yaml b/railway-infrastructure.yaml
index 701dd63..5a0ae86 100644
--- a/railway-infrastructure.yaml
+++ b/railway-infrastructure.yaml
@@ -79,6 +79,7 @@ feature:
     {% else %}5
     {% endif %}
   styles: |-
+    {% if const.color[tags.railway] %}casing,{% endif %}
     {% if tags.railway == 'narrow_gauge' %}default,narrow
     {% else %}default
     {% endif %}
@@ -130,6 +131,24 @@ feature:
       {% elseif type == 'node' %}
       0
       {% endif %}
+  style:casing:
+    color: '#ffffff'
+    pane: casing
+    width: |-
+      {% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}
+      2
+      {% else %}
+        {% if tags.railway == 'rail' %}
+          {% if tags.usage == 'main' or tags.usage == 'branch' %}
+          5
+          {% else %}
+          4
+          {% endif %}
+        {% else %}
+        3
+        {% endif %}
+      {% endif %}
+
   style:narrow:
     width: '{% if tags.service == ''yard'' or tags.service == ''siding'' or tags.service == ''spur'' or tags.service == ''crossover'' %}5{% else %}{% if tags.railway == ''rail'' %}{% if tags.usage == ''main'' or tags.usage == ''branch'' %}7{% else %}6{% endif %}{% elseif tags.railway == ''platform'' %}5{% else %}6{% endif %}{% endif %}'
     color: '{% if tags.railway == ''rail'' or tags.railway == ''narrow_gauge'' or tags.railway == ''disused'' %}{% if tags.usage == ''main'' %}#ff8100{% elseif tags.usage == ''branch'' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == ''subway'' %}#0000ff{% elseif tags.railway == ''tram'' %}#ff00ff{% elseif tags.railway == ''light_rail'' %}#00BD14{% elseif tags.railway == ''platform'' %}#3f3f3f{% else %}#000000{% endif %}'