From f93a802adfa3b66fcb8630ee785616563d4adbeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> Date: Mon, 2 Dec 2019 14:02:06 +0100 Subject: [PATCH] patches/luci: use correct icon for Luci webapps This is correct icon that is used by older versions of Luci. In reality in latest version this icon was replaced with even newer on but let's use this one for now. --- ...-luci-base-Add-webapps-configuration.patch | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/patches/luci/branding/0002-luci-base-Add-webapps-configuration.patch b/patches/luci/branding/0002-luci-base-Add-webapps-configuration.patch index 6a8e9eb58..5b6c834cd 100644 --- a/patches/luci/branding/0002-luci-base-Add-webapps-configuration.patch +++ b/patches/luci/branding/0002-luci-base-Add-webapps-configuration.patch @@ -1,25 +1,26 @@ -From 251c76370661b3a2470f05ec596a90aad7667e9c Mon Sep 17 00:00:00 2001 +From af79a521b8a532acc2f46743f7648bad487bb43f Mon Sep 17 00:00:00 2001 From: Michal Hrusecky <michal.hrusecky@nic.cz> Date: Wed, 22 Aug 2018 14:21:32 +0200 Subject: [PATCH] luci-base: Add webapps configuration --- - modules/luci-base/Makefile | 2 +- - .../root/usr/share/turris-webapps/05_luci.conf | 3 +++ - .../luci-base/root/www/webapps-icons/luci.png | Bin 0 -> 2224 bytes - 3 files changed, 4 insertions(+), 1 deletion(-) + .../root/usr/share/turris-webapps/05_luci.conf | 3 +++ + .../luci-base/root/www/webapps-icons/luci.png | Bin 0 -> 2224 bytes + .../luci-base/root/www/webapps-icons/luci.svg | 17 +++++++++++++++++ + 3 files changed, 20 insertions(+) create mode 100644 modules/luci-base/root/usr/share/turris-webapps/05_luci.conf create mode 100755 modules/luci-base/root/www/webapps-icons/luci.png + create mode 100644 modules/luci-base/root/www/webapps-icons/luci.svg diff --git a/modules/luci-base/root/usr/share/turris-webapps/05_luci.conf b/modules/luci-base/root/usr/share/turris-webapps/05_luci.conf new file mode 100644 -index 000000000..8eee6ccee +index 0000000..2923050 --- /dev/null +++ b/modules/luci-base/root/usr/share/turris-webapps/05_luci.conf @@ -0,0 +1,3 @@ +URL="/cgi-bin/luci" +NAME="LuCI - OpenWRT advance web configuration" -+ICON="luci.png" ++ICON="luci.svg" diff --git a/modules/luci-base/root/www/webapps-icons/luci.png b/modules/luci-base/root/www/webapps-icons/luci.png new file mode 100755 index 0000000000000000000000000000000000000000..459148c6b63b5eb12b858859dfaa22d88b91db90 @@ -72,6 +73,29 @@ ylB>9i$>fvmp0g+&(8WKTq>=sX=KxLN#Qz5?VKwkii<J2Q0000<MNUMnLSTYDe=3sz literal 0 HcmV?d00001 +diff --git a/modules/luci-base/root/www/webapps-icons/luci.svg b/modules/luci-base/root/www/webapps-icons/luci.svg +new file mode 100644 +index 0000000..0ff5e36 +--- /dev/null ++++ b/modules/luci-base/root/www/webapps-icons/luci.svg +@@ -0,0 +1,17 @@ ++<!-- Luci icon (source: https://github.com/openwrt/luci/issues/2251#issuecomment-544469589) --> ++<svg width="256px" height="256px" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> ++ <defs> ++ <mask id="a"> ++ <rect width="105" height="105" x="0" y="-75" transform="rotate(45,50,-25)" fill="#fff"/> ++ </mask> ++ <mask id="b"> ++ <rect width="100" height="100" fill="#fff"/> ++ <rect width="112" height="112" x="0" y="-75" transform="rotate(45,50,-25)"/> ++ <circle r="20" cx="50" cy="50"/> ++ </mask> ++ </defs> ++ <path d="M 50,50 m 0,-50 a 50,50 0,1,0,1,0 Z m 0 13 a 37,37 0,1,1,-1,0 Z" mask="url(#a)"/> ++ <path d="M 50,50 m 0,-32 a 32,32 0,1,0,1,0 Z m 0 12 a 20,20 0,1,1,-1,0 Z" mask="url(#a)"/> ++ <circle r="50" cx="50" cy="50" fill="#a7a8ab" mask="url(#b)"/> ++ <circle r="12" cx="50" cy="50"/> ++</svg> -- -2.18.0 +2.24.0 -- GitLab