1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Reorder padding order, support 1,2,3,4 entries.

This commit is contained in:
Dave Davenport 2017-01-01 01:31:25 +01:00
parent d35e70d817
commit e29f89e401
2 changed files with 12 additions and 2 deletions

View file

@ -37,10 +37,10 @@ typedef struct
typedef struct
{
Distance left;
Distance right;
Distance top;
Distance right;
Distance bottom;
Distance left;
} Padding;
typedef struct {

View file

@ -173,6 +173,16 @@ property
$$->name = $1;
$$->value.padding = (Padding){ $3, $3, $3, $3 };
}
| pvalue PSEP T_PIXEL T_PIXEL PCLOSE {
$$ = rofi_theme_property_create ( P_PADDING );
$$->name = $1;
$$->value.padding = (Padding){ $3, $4, $3, $4 };
}
| pvalue PSEP T_PIXEL T_PIXEL T_PIXEL PCLOSE {
$$ = rofi_theme_property_create ( P_PADDING );
$$->name = $1;
$$->value.padding = (Padding){ $3, $4, $5, $4 };
}
| pvalue PSEP T_PIXEL T_PIXEL T_PIXEL T_PIXEL PCLOSE {
$$ = rofi_theme_property_create ( P_PADDING );
$$->name = $1;