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:
parent
d35e70d817
commit
e29f89e401
2 changed files with 12 additions and 2 deletions
|
@ -37,10 +37,10 @@ typedef struct
|
|||
|
||||
typedef struct
|
||||
{
|
||||
Distance left;
|
||||
Distance right;
|
||||
Distance top;
|
||||
Distance right;
|
||||
Distance bottom;
|
||||
Distance left;
|
||||
} Padding;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue