feat: added support for user-defined border widths in i3bar blocks (#3726)

This change introduces support for four new properties on the i3bar
protocol, namely "border_top", "border_right", "border_bottom"
and "border_left".

If a block is drawn with a border, these values define the width of
the corresponding edge in pixels. They all default to 1 if not
specified to preserve compatibility.

fixes #3722
This commit is contained in:
Ingo Bürk
2019-06-22 22:18:29 +02:00
committed by Michael Stapelberg
parent 48af067dfe
commit ca82f95812
4 changed files with 51 additions and 8 deletions

View File

@ -61,6 +61,10 @@ struct status_block {
bool urgent;
bool no_separator;
uint32_t border_top;
uint32_t border_right;
uint32_t border_bottom;
uint32_t border_left;
bool pango_markup;
/* The amount of pixels necessary to render a separater after the block. */