Set border width to 0 on all blocks except buttons
This commit is contained in:
13
main.go
13
main.go
@@ -19,10 +19,10 @@ type I3BarOutBlock struct {
|
|||||||
Color string `json:"color,omitempty"`
|
Color string `json:"color,omitempty"`
|
||||||
Background string `json:"background,omitempty"`
|
Background string `json:"background,omitempty"`
|
||||||
Border string `json:"border,omitempty"`
|
Border string `json:"border,omitempty"`
|
||||||
BorderTop int `json:"border_top,omitempty"`
|
BorderTop int `json:"border_top"`
|
||||||
BorderRight int `json:"border_right,omitempty"`
|
BorderRight int `json:"border_right"`
|
||||||
BorderBottom int `json:"border_bottom,omitempty"`
|
BorderBottom int `json:"border_bottom"`
|
||||||
BorderLeft int `json:"border_left,omitempty"`
|
BorderLeft int `json:"border_left"`
|
||||||
// measured either in pixels or in characters, so either int or string, let's make it string :)
|
// measured either in pixels or in characters, so either int or string, let's make it string :)
|
||||||
MinWidth string `json:"min_width,omitempty"`
|
MinWidth string `json:"min_width,omitempty"`
|
||||||
Align string `json:"align,omitempty"`
|
Align string `json:"align,omitempty"`
|
||||||
@@ -172,6 +172,11 @@ func main() {
|
|||||||
b.Border = app.Border
|
b.Border = app.Border
|
||||||
}
|
}
|
||||||
|
|
||||||
|
b.BorderTop = 1
|
||||||
|
b.BorderRight = 1
|
||||||
|
b.BorderBottom = 1
|
||||||
|
b.BorderLeft = 1
|
||||||
|
|
||||||
j = append(j, b)
|
j = append(j, b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user