Update argon.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-10-16 23:52:31 +08:00
1 parent b4edb648cd
commit 76f10c2a74
1 file changed
+6 -6
+6 -6
View File
@@ -17,14 +17,14 @@
}
}
--- a/luci-theme-argon/ucode/template/themes/argon/header.ut
+++ b/luci-theme-argon/ucode/template/themes/argon/header.ut
@@ -47,7 +47,7 @@
--- 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 }}">
+<html lang="{{ dispatcher.lang }}"{% if (mode == 'dark'): %} data-darkmode="true"{% elif (mode == 'light'): %} data-darkmode="false"{% endif %}>
-<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>
{% include("themes/" + theme + "/head_meta", { hostname: hostname, node: node, bar_color: bar_color, media: media }) %}
{% if (!is_login): %}