feat: add option to use system font

This commit is contained in:
Erzbir
2025-08-08 01:09:45 +08:00
parent 2db10f0bee
commit a87c97dd72
3 changed files with 16 additions and 2 deletions
+4
View File
@@ -8,6 +8,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title th:text="${title}"></title>
<script no-pjax th:inline="javascript">
let system_font = /*[[${theme.config.style.system_font}]]*/;
document.documentElement.setAttribute("system_font", system_font);
</script>
<script no-pjax th:inline="javascript">
let dark_theme = /*[[${theme.config.style.dark_color_schema}]]*/;
let light_theme = /*[[${theme.config.style.light_color_schema}]]*/;