Files
op-packages/.github/diy/patches/argon.patch
T
2026-10-09 03:20:50 +08:00

31 lines
893 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/header.ut
+++ b/luci-theme-argon/ucode/template/themes/argon/header.ut
@@ -47,7 +47,7 @@
-%}
<!DOCTYPE html>
-<html lang="{{ dispatcher.lang }}">
+<html lang="{{ dispatcher.lang }}"{% if (mode == 'dark'): %} data-darkmode="true"{% elif (mode == 'light'): %} data-darkmode="false"{% endif %}>
<head>
{% include("themes/" + theme + "/head_meta", { hostname: hostname, node: node, bar_color: bar_color, media: media }) %}