mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
bar: add margin properties to the border
This commit is contained in:
parent
12ef2569a4
commit
50d6afab6a
5 changed files with 33 additions and 0 deletions
|
@ -378,6 +378,10 @@ bar_new(const struct bar_config *config)
|
|||
priv->right_margin = config->right_margin;
|
||||
priv->border.width = config->border.width;
|
||||
priv->border.color = config->border.color;
|
||||
priv->border.left_margin = config->border.left_margin;
|
||||
priv->border.right_margin = config->border.right_margin;
|
||||
priv->border.top_margin = config->border.top_margin;
|
||||
priv->border.bottom_margin = config->border.bottom_margin;
|
||||
priv->left.mods = malloc(config->left.count * sizeof(priv->left.mods[0]));
|
||||
priv->left.exps = calloc(config->left.count, sizeof(priv->left.exps[0]));
|
||||
priv->center.mods = malloc(config->center.count * sizeof(priv->center.mods[0]));
|
||||
|
|
|
@ -28,6 +28,8 @@ struct bar_config {
|
|||
struct {
|
||||
int width;
|
||||
struct rgba color;
|
||||
int left_margin, right_margin;
|
||||
int top_margin, bottom_margin;
|
||||
} border;
|
||||
|
||||
struct {
|
||||
|
|
|
@ -19,6 +19,8 @@ struct private {
|
|||
struct {
|
||||
int width;
|
||||
struct rgba color;
|
||||
int left_margin, right_margin;
|
||||
int top_margin, bottom_margin;
|
||||
} border;
|
||||
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue