]> git.openstreetmap.org Git - rails.git/commitdiff
Add colors and abbreviation to web manifest
authorMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Fri, 28 Feb 2025 11:33:41 +0000 (12:33 +0100)
committerMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Fri, 28 Feb 2025 11:33:41 +0000 (12:33 +0100)
app/assets/favicons/manifest.json.erb

index 8d806ac9ad96ae056f1ba1a438a1b9bd69c73d9b..1666333a4e78893cd47d68401a1e1271ed4f067a 100644 (file)
@@ -1,5 +1,6 @@
 {
        "name": "OpenStreetMap",
+       "short_name": "OSM",
        "icons": <%= [36, 48, 72, 96, 144, 192].map { |res| {
                        src: image_path("android-chrome-#{res}x#{res}.png").gsub("/", "\\/"),
                        sizes: "#{res}x#{res}",
@@ -7,5 +8,7 @@
                        density: res.to_f / 48
                } }.to_json %>,
        "start_url": "/",
+       "theme_color": "#7ebc6f",
+       "background_color": "#fff",
        "display": "minimal-ui"
 }