Skip to content
Snippets Groups Projects
Verified Commit f93a802a authored by Karel Koci's avatar Karel Koci :metal:
Browse files

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.
parent 5fb8ef6f
2 merge requests!123Turris OS 5.0 (HBK),!68patches/luci: use correct icon for Luci webapps
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> From: Michal Hrusecky <michal.hrusecky@nic.cz>
Date: Wed, 22 Aug 2018 14:21:32 +0200 Date: Wed, 22 Aug 2018 14:21:32 +0200
Subject: [PATCH] luci-base: Add webapps configuration Subject: [PATCH] luci-base: Add webapps configuration
--- ---
modules/luci-base/Makefile | 2 +- .../root/usr/share/turris-webapps/05_luci.conf | 3 +++
.../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.png | Bin 0 -> 2224 bytes .../luci-base/root/www/webapps-icons/luci.svg | 17 +++++++++++++++++
3 files changed, 4 insertions(+), 1 deletion(-) 3 files changed, 20 insertions(+)
create mode 100644 modules/luci-base/root/usr/share/turris-webapps/05_luci.conf 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 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 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 new file mode 100644
index 000000000..8eee6ccee index 0000000..2923050
--- /dev/null --- /dev/null
+++ b/modules/luci-base/root/usr/share/turris-webapps/05_luci.conf +++ b/modules/luci-base/root/usr/share/turris-webapps/05_luci.conf
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
+URL="/cgi-bin/luci" +URL="/cgi-bin/luci"
+NAME="LuCI - OpenWRT advance web configuration" +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 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 new file mode 100755
index 0000000000000000000000000000000000000000..459148c6b63b5eb12b858859dfaa22d88b91db90 index 0000000000000000000000000000000000000000..459148c6b63b5eb12b858859dfaa22d88b91db90
...@@ -72,6 +73,29 @@ ylB>9i$>fvmp0g+&(8WKTq>=sX=KxLN#Qz5?VKwkii<J2Q0000<MNUMnLSTYDe=3sz ...@@ -72,6 +73,29 @@ ylB>9i$>fvmp0g+&(8WKTq>=sX=KxLN#Qz5?VKwkii<J2Q0000<MNUMnLSTYDe=3sz
literal 0 literal 0
HcmV?d00001 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment