feat: add border width setting

This commit is contained in:
Erzbir
2026-06-15 22:32:36 +08:00
parent 9f6165e787
commit cf3dfec09e
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -89,6 +89,13 @@ spec:
- label: ">"
value: '">"'
- $formkit: text
label: 边线宽度
name: border_width
value:
placeholder: "calc(var(--size-theme-font) * 0.125)"
help: 控制主题通用边线宽度, 留空使用主题默认值
- $formkit: checkbox
label: 使用系统字体
name: system_font_enable
+5
View File
@@ -158,6 +158,11 @@
--list-theme-marker: [(${theme.config.style.list_marker})];
}
</style>
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.border_width)}" th:inline="css">
:root {
--width-theme-border: [(${theme.config.style.border_width})];
}
</style>
<script no-pjax>
window.TerminalTheme?.applyCustomCss?.();
</script>