From 418216391be229e0404046e6ec9197919682da4e Mon Sep 17 00:00:00 2001 From: eleksir Date: Tue, 16 Jan 2024 20:50:41 +0300 Subject: [PATCH] Set border width to 0 on all blocks except buttons --- main.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 4d41938..43aed20 100644 --- a/main.go +++ b/main.go @@ -19,10 +19,10 @@ type I3BarOutBlock struct { Color string `json:"color,omitempty"` Background string `json:"background,omitempty"` Border string `json:"border,omitempty"` - BorderTop int `json:"border_top,omitempty"` - BorderRight int `json:"border_right,omitempty"` - BorderBottom int `json:"border_bottom,omitempty"` - BorderLeft int `json:"border_left,omitempty"` + BorderTop int `json:"border_top"` + BorderRight int `json:"border_right"` + BorderBottom int `json:"border_bottom"` + BorderLeft int `json:"border_left"` // measured either in pixels or in characters, so either int or string, let's make it string :) MinWidth string `json:"min_width,omitempty"` Align string `json:"align,omitempty"` @@ -172,6 +172,11 @@ func main() { b.Border = app.Border } + b.BorderTop = 1 + b.BorderRight = 1 + b.BorderBottom = 1 + b.BorderLeft = 1 + j = append(j, b) } }