feat(config): add light border preset (#550)

This commit is contained in:
xqrs 2025-05-25 18:45:01 +03:00 • committed by GitHub
parent 5e1c4e2c06
commit a8dd8ce917
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
}
}