From a9f6d850a28aa936228253806717a1c70dfe94d4 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 5 Dec 2023 09:20:48 +0200 Subject: luci-theme-openwrt-2020: fix logo.svg according to Logo Usage Guidelines The "White & Dark Blue" logo should have a background filled with PANTONE 306 C HEX #00B5E2. SVG doesn't support background-color properly so use a rectangle instead. The dark blue circle must be PANTONE 7463 C HEX #002B49 See https://openwrt.org/_media/docs/guide-graphic-designer/openwrt-logo-usage-guidelines.pdf Signed-off-by: Sergey Ponomarev --- themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg index 6060221844..e91f801def 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg @@ -1,7 +1,8 @@ + - + -- cgit From cc0c66c0e5e8414fae65cc27b1c73d89cff43c04 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 8 Dec 2023 12:13:17 +0200 Subject: luci-theme-openwrt-2020: make logo.svg square Signed-off-by: Sergey Ponomarev --- .../luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg index e91f801def..faeb40335f 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg @@ -1,6 +1,6 @@ - - + + -- cgit From d0df669431f2e4c619ecd45d1ad28762d2232232 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 8 Dec 2023 12:16:23 +0200 Subject: luci-theme-openwrt-2020: logo.svg add 1px on top and bottom To keep ratio the one pixel was also added to left and right and now size is 100x100 Signed-off-by: Sergey Ponomarev --- .../luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg index faeb40335f..72b956d5b3 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg @@ -1,6 +1,6 @@ - - + + -- cgit From 84da02bc09de21e105edc4495b6f13a0b8095fee Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 8 Dec 2023 12:23:28 +0200 Subject: luci-theme-openwrt-2020: Minimize logo.svg Save 686-536=150 bytes Signed-off-by: Sergey Ponomarev --- .../htdocs/luci-static/openwrt2020/logo.svg | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg index 72b956d5b3..c7a445e93d 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg @@ -1,8 +1 @@ - - - - - - - - + \ No newline at end of file -- cgit From a9b06db126d329ff941fa0b87163526696afe15e Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 8 Dec 2023 10:40:31 +0200 Subject: luci-theme-openwrt-2020: remove icon explicit svg type That was a fix for old browsers when the mime type is incorrect. Today all servers return a correct mime but also browsers can sniff a type. Signed-off-by: Sergey Ponomarev --- .../luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut index 2b7c581387..fa9dea47b7 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut @@ -19,7 +19,7 @@ - + -- cgit From b5a3354e828a19d7d836a3470d43cc57257e1f87 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 12 Dec 2023 16:19:52 +0200 Subject: luci-theme-openwrt-2020: Fix Safari favicon: use PNG alongside with SVG Chrome, Edge and Firefox will use the SVG icon but Safari will use the PNG. Chrome will try to pick an icon with a best suited dimension. So it will also download the PNG to check it's dimension. The explicitly specified sizes are preventing this. Signed-off-by: Sergey Ponomarev --- .../ucode/template/themes/openwrt2020/header.ut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut index fa9dea47b7..38fabea556 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut @@ -19,7 +19,8 @@ - + + -- cgit From 5f3a24ef8144f94b007fd52461fc1444f2634a6c Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 12 Dec 2023 16:22:25 +0200 Subject: luci-theme-openwrt-2020: Remove apple-touch-icon The apple-touch-icon was used by old Safari on iOS. Today just is enough. Signed-off-by: Sergey Ponomarev --- .../luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut index 38fabea556..3857bce723 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut @@ -21,7 +21,6 @@ - {{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${node.title}` : ''}`) }} - LuCI -- cgit From b572c35ca8ab78fd7959adb7f91651612018abdc Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 12 Dec 2023 16:27:49 +0200 Subject: luci-theme-material: Use a new OpenWrt logo 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 --- .../htdocs/luci-static/material/favicon.ico | Bin 4286 -> 0 bytes .../htdocs/luci-static/material/logo.svg | 1 + .../htdocs/luci-static/material/logo_48.png | Bin 0 -> 2337 bytes .../ucode/template/themes/material/header.ut | 3 ++- 4 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 themes/luci-theme-material/htdocs/luci-static/material/favicon.ico create mode 100644 themes/luci-theme-material/htdocs/luci-static/material/logo.svg create mode 100644 themes/luci-theme-material/htdocs/luci-static/material/logo_48.png diff --git a/themes/luci-theme-material/htdocs/luci-static/material/favicon.ico b/themes/luci-theme-material/htdocs/luci-static/material/favicon.ico deleted file mode 100644 index 72c311555f..0000000000 Binary files a/themes/luci-theme-material/htdocs/luci-static/material/favicon.ico and /dev/null differ diff --git a/themes/luci-theme-material/htdocs/luci-static/material/logo.svg b/themes/luci-theme-material/htdocs/luci-static/material/logo.svg new file mode 100644 index 0000000000..c7a445e93d --- /dev/null +++ b/themes/luci-theme-material/htdocs/luci-static/material/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/luci-theme-material/htdocs/luci-static/material/logo_48.png b/themes/luci-theme-material/htdocs/luci-static/material/logo_48.png new file mode 100644 index 0000000000..6fb1f75a40 Binary files /dev/null and b/themes/luci-theme-material/htdocs/luci-static/material/logo_48.png differ diff --git a/themes/luci-theme-material/ucode/template/themes/material/header.ut b/themes/luci-theme-material/ucode/template/themes/material/header.ut index ed6a637978..4a7e4cb8f1 100644 --- a/themes/luci-theme-material/ucode/template/themes/material/header.ut +++ b/themes/luci-theme-material/ucode/template/themes/material/header.ut @@ -40,7 +40,8 @@ - + + {% if (node?.css): %} {% endif %} -- cgit From 9ce280af95572a15cbdf0a5fc23df28648fb0f4b Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 12 Dec 2023 16:32:34 +0200 Subject: luci-theme-bootstrap: Use a new OpenWrt logo 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 --- .../htdocs/luci-static/bootstrap/favicon.png | Bin 592 -> 0 bytes .../htdocs/luci-static/bootstrap/logo.svg | 1 + .../htdocs/luci-static/bootstrap/logo_48.png | Bin 0 -> 2337 bytes .../ucode/template/themes/bootstrap/header.ut | 3 ++- 4 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png create mode 100644 themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg create mode 100644 themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png 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 index 90adf2f94f..0000000000 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 index 0000000000..c7a445e93d --- /dev/null +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg @@ -0,0 +1 @@ + \ 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 index 0000000000..6fb1f75a40 Binary files /dev/null and b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo_48.png differ diff --git a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut index b7bc770b4b..a6d2936a5f 100644 --- a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut +++ b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut @@ -32,7 +32,8 @@ - + + {% if (node?.css): %} {% endif %} -- cgit From 74935b8ebb7089b69ec552c233d4783b1a4ef74e Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 12 Dec 2023 21:00:02 +0200 Subject: luci-theme-openwrt-2020: Fix header light blue color According to a style guide the color should be #00B5E2. In a9f6d850a28aa936228253806717a1c70dfe94d4 added a light blue square background to logo.svg. Their color started differs, the change fixes this. Signed-off-by: Sergey Ponomarev --- .../luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css index bf7a7a391d..4853ea7497 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css @@ -1,5 +1,5 @@ :root { - --main-bright-color: #00A3E1; + --main-bright-color: #00B5E2; --main-dark-color: #002B49; --secondary-bright-color: #FFFFFF; --secondary-dark-color: #212322; -- cgit