Skip to content

Commit 395700d

Browse files
style: Optimize colors of dark/light map themes for better contrast
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6) Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent c13c1da commit 395700d

2 files changed

Lines changed: 67 additions & 67 deletions

File tree

app/src/main/assets/map_style_dark.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
{
1414
"id": "background",
1515
"type": "background",
16-
"paint": { "background-color": "#1a2535" }
16+
"paint": { "background-color": "#111c2a" }
1717
},
1818
{
1919
"id": "water",
2020
"type": "fill",
2121
"source": "openmaptiles",
2222
"source-layer": "water",
23-
"paint": { "fill-color": "#0f1c2d" }
23+
"paint": { "fill-color": "#071018" }
2424
},
2525
{
2626
"id": "waterway",
@@ -29,7 +29,7 @@
2929
"source-layer": "waterway",
3030
"minzoom": 8,
3131
"paint": {
32-
"line-color": "#0f1c2d",
32+
"line-color": "#071018",
3333
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 0.5, 12, 1.5, 16, 3]
3434
}
3535
},
@@ -39,46 +39,46 @@
3939
"source": "openmaptiles",
4040
"source-layer": "landcover",
4141
"filter": ["==", "class", "wood"],
42-
"paint": { "fill-color": "#162e22" }
42+
"paint": { "fill-color": "#0c2016" }
4343
},
4444
{
4545
"id": "landcover-grass",
4646
"type": "fill",
4747
"source": "openmaptiles",
4848
"source-layer": "landcover",
4949
"filter": ["in", "class", "grass", "scrub", "crop"],
50-
"paint": { "fill-color": "#1b3527" }
50+
"paint": { "fill-color": "#102219" }
5151
},
5252
{
5353
"id": "landuse-residential",
5454
"type": "fill",
5555
"source": "openmaptiles",
5656
"source-layer": "landuse",
5757
"filter": ["in", "class", "residential", "suburb", "neighbourhood"],
58-
"paint": { "fill-color": "#1c2a38" }
58+
"paint": { "fill-color": "#131f2c" }
5959
},
6060
{
6161
"id": "landuse-commercial",
6262
"type": "fill",
6363
"source": "openmaptiles",
6464
"source-layer": "landuse",
6565
"filter": ["in", "class", "commercial", "retail", "industrial"],
66-
"paint": { "fill-color": "#1e2b3a" }
66+
"paint": { "fill-color": "#14202e" }
6767
},
6868
{
6969
"id": "landuse-park",
7070
"type": "fill",
7171
"source": "openmaptiles",
7272
"source-layer": "landuse",
7373
"filter": ["in", "class", "park", "pitch", "playground", "golf", "cemetery"],
74-
"paint": { "fill-color": "#1b3527" }
74+
"paint": { "fill-color": "#102219" }
7575
},
7676
{
7777
"id": "park",
7878
"type": "fill",
7979
"source": "openmaptiles",
8080
"source-layer": "park",
81-
"paint": { "fill-color": "#1b3527", "fill-opacity": 0.8 }
81+
"paint": { "fill-color": "#102219", "fill-opacity": 0.8 }
8282
},
8383
{
8484
"id": "building",
@@ -87,8 +87,8 @@
8787
"source-layer": "building",
8888
"minzoom": 13,
8989
"paint": {
90-
"fill-color": "#1e2c3c",
91-
"fill-outline-color": "#253447"
90+
"fill-color": "#14202e",
91+
"fill-outline-color": "#1c2a3c"
9292
}
9393
},
9494
{
@@ -100,7 +100,7 @@
100100
"minzoom": 14,
101101
"layout": { "line-cap": "round", "line-join": "round" },
102102
"paint": {
103-
"line-color": "#1e2d3e",
103+
"line-color": "#142434",
104104
"line-width": 1,
105105
"line-dasharray": [2, 2]
106106
}
@@ -113,7 +113,7 @@
113113
"filter": ["==", "class", "service"],
114114
"minzoom": 14,
115115
"layout": { "line-cap": "round", "line-join": "round" },
116-
"paint": { "line-color": "#16202e", "line-width": 3 }
116+
"paint": { "line-color": "#0c1620", "line-width": 3 }
117117
},
118118
{
119119
"id": "road-service",
@@ -123,7 +123,7 @@
123123
"filter": ["==", "class", "service"],
124124
"minzoom": 13,
125125
"layout": { "line-cap": "round", "line-join": "round" },
126-
"paint": { "line-color": "#1b2838", "line-width": 1.5 }
126+
"paint": { "line-color": "#243348", "line-width": 1.5 }
127127
},
128128
{
129129
"id": "road-minor-casing",
@@ -134,7 +134,7 @@
134134
"minzoom": 12,
135135
"layout": { "line-cap": "round", "line-join": "round" },
136136
"paint": {
137-
"line-color": "#16202e",
137+
"line-color": "#0c1620",
138138
"line-width": ["interpolate", ["linear"], ["zoom"], 12, 2, 16, 5]
139139
}
140140
},
@@ -147,7 +147,7 @@
147147
"minzoom": 11,
148148
"layout": { "line-cap": "round", "line-join": "round" },
149149
"paint": {
150-
"line-color": "#1c293a",
150+
"line-color": "#263548",
151151
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 0.5, 14, 2, 16, 4]
152152
}
153153
},
@@ -159,7 +159,7 @@
159159
"filter": ["==", "class", "secondary"],
160160
"layout": { "line-cap": "round", "line-join": "round" },
161161
"paint": {
162-
"line-color": "#16202e",
162+
"line-color": "#0c1620",
163163
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 2, 14, 7]
164164
}
165165
},
@@ -171,7 +171,7 @@
171171
"filter": ["==", "class", "secondary"],
172172
"layout": { "line-cap": "round", "line-join": "round" },
173173
"paint": {
174-
"line-color": "#243040",
174+
"line-color": "#2e3e54",
175175
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 1, 14, 5]
176176
}
177177
},
@@ -183,7 +183,7 @@
183183
"filter": ["in", "class", "primary", "trunk"],
184184
"layout": { "line-cap": "round", "line-join": "round" },
185185
"paint": {
186-
"line-color": "#16202e",
186+
"line-color": "#0c1620",
187187
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 2, 14, 9]
188188
}
189189
},
@@ -195,7 +195,7 @@
195195
"filter": ["in", "class", "primary", "trunk"],
196196
"layout": { "line-cap": "round", "line-join": "round" },
197197
"paint": {
198-
"line-color": "#2a3c52",
198+
"line-color": "#344e68",
199199
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 1, 14, 7]
200200
}
201201
},
@@ -207,7 +207,7 @@
207207
"filter": ["==", "class", "motorway"],
208208
"layout": { "line-cap": "round", "line-join": "round" },
209209
"paint": {
210-
"line-color": "#1a2d42",
210+
"line-color": "#0e1e30",
211211
"line-width": ["interpolate", ["linear"], ["zoom"], 4, 2, 14, 12]
212212
}
213213
},
@@ -219,7 +219,7 @@
219219
"filter": ["==", "class", "motorway"],
220220
"layout": { "line-cap": "round", "line-join": "round" },
221221
"paint": {
222-
"line-color": "#2e3e52",
222+
"line-color": "#385068",
223223
"line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 14, 10]
224224
}
225225
},
@@ -231,7 +231,7 @@
231231
"filter": ["in", "class", "rail", "transit"],
232232
"minzoom": 10,
233233
"paint": {
234-
"line-color": "#263342",
234+
"line-color": "#1c2836",
235235
"line-width": 1.5,
236236
"line-dasharray": [4, 3]
237237
}
@@ -243,7 +243,7 @@
243243
"source-layer": "boundary",
244244
"filter": ["==", "admin_level", 2],
245245
"paint": {
246-
"line-color": "#374a62",
246+
"line-color": "#44607e",
247247
"line-width": 1.5,
248248
"line-dasharray": [4, 3]
249249
}
@@ -256,7 +256,7 @@
256256
"filter": ["==", "admin_level", 4],
257257
"minzoom": 4,
258258
"paint": {
259-
"line-color": "#2e3e52",
259+
"line-color": "#385068",
260260
"line-width": 1,
261261
"line-dasharray": [3, 4]
262262
}
@@ -274,8 +274,8 @@
274274
"text-max-width": 8
275275
},
276276
"paint": {
277-
"text-color": "#c8d4e0",
278-
"text-halo-color": "#1a2535",
277+
"text-color": "#dce8f6",
278+
"text-halo-color": "#111c2a",
279279
"text-halo-width": 1.5
280280
}
281281
},
@@ -292,8 +292,8 @@
292292
"text-max-width": 10
293293
},
294294
"paint": {
295-
"text-color": "#e0e8f0",
296-
"text-halo-color": "#1a2535",
295+
"text-color": "#eef4fc",
296+
"text-halo-color": "#111c2a",
297297
"text-halo-width": 1.5
298298
}
299299
},
@@ -311,8 +311,8 @@
311311
"text-max-width": 8
312312
},
313313
"paint": {
314-
"text-color": "#b0bfcc",
315-
"text-halo-color": "#1a2535",
314+
"text-color": "#c6d5e4",
315+
"text-halo-color": "#111c2a",
316316
"text-halo-width": 1.5
317317
}
318318
},
@@ -330,8 +330,8 @@
330330
"text-max-width": 8
331331
},
332332
"paint": {
333-
"text-color": "#8fa0b5",
334-
"text-halo-color": "#1a2535",
333+
"text-color": "#a8b8cc",
334+
"text-halo-color": "#111c2a",
335335
"text-halo-width": 1
336336
}
337337
},
@@ -351,8 +351,8 @@
351351
"text-letter-spacing": 0.1
352352
},
353353
"paint": {
354-
"text-color": "#7a8fa8",
355-
"text-halo-color": "#1a2535",
354+
"text-color": "#94a8c0",
355+
"text-halo-color": "#111c2a",
356356
"text-halo-width": 1
357357
}
358358
},
@@ -370,8 +370,8 @@
370370
"text-max-angle": 30
371371
},
372372
"paint": {
373-
"text-color": "#7a8fa8",
374-
"text-halo-color": "#1a2535",
373+
"text-color": "#94a8c0",
374+
"text-halo-color": "#111c2a",
375375
"text-halo-width": 1
376376
}
377377
}

0 commit comments

Comments
 (0)