feat: add border style setting
This commit is contained in:
@@ -96,6 +96,25 @@ spec:
|
||||
placeholder: "calc(var(--size-theme-font) * 0.125)"
|
||||
help: 控制主题通用边线宽度, 留空使用主题默认值
|
||||
|
||||
- $formkit: select
|
||||
label: 边线样式
|
||||
name: border_style
|
||||
value: ""
|
||||
help: 控制主题通用边线样式, 留空使用主题默认值
|
||||
options:
|
||||
- label: "default"
|
||||
value: ""
|
||||
- label: "solid"
|
||||
value: "solid"
|
||||
- label: "dashed"
|
||||
value: "dashed"
|
||||
- label: "dotted"
|
||||
value: "dotted"
|
||||
- label: "double"
|
||||
value: "double"
|
||||
- label: "none"
|
||||
value: "none"
|
||||
|
||||
- $formkit: checkbox
|
||||
label: 使用系统字体
|
||||
name: system_font_enable
|
||||
|
||||
@@ -163,6 +163,11 @@
|
||||
--width-theme-border: [(${theme.config.style.border_width})];
|
||||
}
|
||||
</style>
|
||||
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.border_style)}" th:inline="css">
|
||||
:root {
|
||||
--style-theme-border: [(${theme.config.style.border_style})];
|
||||
}
|
||||
</style>
|
||||
<script no-pjax>
|
||||
window.TerminalTheme?.applyCustomCss?.();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user