From a8dd8ce9173a910f850d5647b1d6e4aa883ace8c Mon Sep 17 00:00:00 2001 From: xqrs <3bd3bdr@gmail.com> Date: Sun, 25 May 2025 18:45:01 +0300 Subject: [PATCH] feat(config): add light border preset (#550) --- internal/config/border.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/internal/config/border.go b/internal/config/border.go index 50fc497..031215e 100644 --- a/internal/config/border.go +++ b/internal/config/border.go @@ -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, + } +}