feat: add border width setting
This commit is contained in:
@@ -89,6 +89,13 @@ spec:
|
|||||||
- label: ">"
|
- label: ">"
|
||||||
value: '">"'
|
value: '">"'
|
||||||
|
|
||||||
|
- $formkit: text
|
||||||
|
label: 边线宽度
|
||||||
|
name: border_width
|
||||||
|
value:
|
||||||
|
placeholder: "calc(var(--size-theme-font) * 0.125)"
|
||||||
|
help: 控制主题通用边线宽度, 留空使用主题默认值
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -158,6 +158,11 @@
|
|||||||
--list-theme-marker: [(${theme.config.style.list_marker})];
|
--list-theme-marker: [(${theme.config.style.list_marker})];
|
||||||
}
|
}
|
||||||
</style>
|
</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>
|
<script no-pjax>
|
||||||
window.TerminalTheme?.applyCustomCss?.();
|
window.TerminalTheme?.applyCustomCss?.();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user