Pārlūkot izejas kodu

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

xqrs 11 mēneši atpakaļ
vecāks
revīzija
a8dd8ce917
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. 13 0
      internal/config/border.go

+ 13 - 0
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,
+	}
+}