feat(config): add light border preset (#550)
This commit is contained in:
parent
5e1c4e2c06
commit
a8dd8ce917
1 changed files with 13 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ func (p *BorderPreset) UnmarshalTOML(v any) error {
|
|||
*p = borderPresetThick()
|
||||
case "round":
|
||||
*p = borderPresetRound()
|
||||
case "light":
|
||||
*p = borderPresetLight()
|
||||
case "hidden":
|
||||
*p = BorderPreset{
|
||||
Horizontal: ' ',
|
||||
|
|
@ -65,3 +67,14 @@ func borderPresetRound() BorderPreset {
|
|||
BottomRight: tview.BoxDrawingsLightArcUpAndLeft,
|
||||
}
|
||||
}
|
||||
|
||||
func borderPresetLight() BorderPreset {
|
||||
return BorderPreset{
|
||||
Horizontal: tview.BoxDrawingsLightHorizontal,
|
||||
Vertical: tview.BoxDrawingsLightVertical,
|
||||
TopLeft: tview.BoxDrawingsLightDownAndRight,
|
||||
TopRight: tview.BoxDrawingsLightDownAndLeft,
|
||||
BottomLeft: tview.BoxDrawingsLightUpAndRight,
|
||||
BottomRight: tview.BoxDrawingsLightUpAndLeft,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue