feat: add border width setting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user