Create theme-glass.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-10-01 15:03:41 +08:00
1 parent 4662d0d6b6
commit d76f9a7e6e
1 file changed
+11
+11
View File
@@ -0,0 +1,11 @@
--- a/luci-theme-glass/ucode/template/themes/glass/header.ut
+++ b/luci-theme-glass/ucode/template/themes/glass/header.ut
@@ -63,7 +63,7 @@
}
-%}
<!DOCTYPE html>
-<html lang="{{ dispatcher.lang }}">
+<html lang="{{ dispatcher.lang }}"{% if (glass_mode == 'dark'): %} data-darkmode="true"{% elif (glass_mode == 'light'): %} data-darkmode="false"{% endif %}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">