Files
op-packages/.github/diy/patches/argon.patch
T
2026-10-16 23:52:31 +08:00

31 lines
850 B
Diff

--- a/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json
+++ b/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json
@@ -8,7 +8,14 @@
},
"depends": {
"acl": [ "luci-app-argon-config" ],
- "uci": { "argon": true }
+ "uci": {
+ "argon": true,
+ "luci": {
+ "main": {
+ "mediaurlbase": "/luci-static/argon"
+ }
+ }
+ }
}
}
}
--- a/luci-theme-argon/ucode/template/themes/argon/head.ut
+++ b/luci-theme-argon/ucode/template/themes/argon/head.ut
@@ -67,7 +67,7 @@
-%}
<!DOCTYPE html>
-<html lang="{{ dispatcher.lang }}" data-argon-mode="{{ mode }}">
+<html lang="{{ dispatcher.lang }}" data-argon-mode="{{ mode }}" {% if (mode == 'dark'): %} data-darkmode="true"{% elif (mode == 'light'): %} data-darkmode="false"{% endif %}>
<head>
{% if (!is_login): %}