luci-theme-bootstrap: Use a new OpenWrt logo
authorSergey Ponomarev <stokito@gmail.com>
Tue, 12 Dec 2023 14:32:34 +0000 (16:32 +0200)
committerSergey Ponomarev <stokito@gmail.com>
Tue, 12 Dec 2023 18:24:12 +0000 (20:24 +0200)
The new OpenWrt logo.svg is copied from luci-theme-openwrt-2020.
The logo.png was copied too but resized from 180px 3.9Kb down to 48px 2.3Kb.
This is enough when used as icon for app pinned to desktop.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png [deleted file]
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg [new file with mode: 0644]
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png [new file with mode: 0644]
themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut

diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png
deleted file mode 100644 (file)
index 90adf2f..0000000
Binary files a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png and /dev/null differ
diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg
new file mode 100644 (file)
index 0000000..c7a445e
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-9 -1 100 100"><path d="m -9 -1h100v100h-100z" fill="#00B5E2"/><path d="m40.5 50.8a6.6 6.6 0 1 0 0 13.2 6.6 6.6 0 0 0 0-13.2m-40.5-33.9 7 6.8a47.5 47.5 0 0 1 67.2 0l7-6.8a57.2 57.2 0 0 0-81.2 0" fill="#fff"/><path d="m12.5 29.2 6.8 7a30 30 0 0 1 42.6 0l6.8-7a39.7 39.7 0 0 0-56.3 0" fill="#fff"/><path d="m24.8 41.6 6.8 6.9a12.6 12.6 0 0 1 18 0l6.8-6.9a22.3 22.3 0 0 0-31.6 0" fill="#fff"/><path d="m64.9 39.7a30.2 30.2 0 1 1-48.7 0l-6.9-7a39.9 39.9 0 1 0 62.5 0z" fill="#002B49"/></svg>
\ No newline at end of file
diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png
new file mode 100644 (file)
index 0000000..6fb1f75
Binary files /dev/null and b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png differ
index b7bc770b4b1976776aeab3e729cd7825b682b263..a6d2936a5f417dd38aaac1bb8846587652b94f00 100644 (file)
@@ -32,7 +32,8 @@
                <meta name="viewport" content="initial-scale=1.0">
                <link rel="stylesheet" href="{{ media }}/cascade.css">
                <link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="{{ media }}/mobile.css" type="text/css" />
-               <link rel="shortcut icon" href="{{ media }}/favicon.png">
+               <link rel="icon" href="{{ media }}/logo_48.png" sizes="48x48">
+               <link rel="icon" href="{{ media }}/logo.svg" sizes="any">
                {% if (node?.css): %}
                <link rel="stylesheet" href="{{ resource }}/{{ node.css }}">
                {% endif %}