mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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
|
typedef struct
|
||||||
{
|
{
|
||||||
Distance left;
|
|
||||||
Distance right;
|
|
||||||
Distance top;
|
Distance top;
|
||||||
|
Distance right;
|
||||||
Distance bottom;
|
Distance bottom;
|
||||||
|
Distance left;
|
||||||
} Padding;
|
} Padding;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -173,6 +173,16 @@ property
|
||||||
$$->name = $1;
|
$$->name = $1;
|
||||||
$$->value.padding = (Padding){ $3, $3, $3, $3 };
|
$$->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 {
|
| pvalue PSEP T_PIXEL T_PIXEL T_PIXEL T_PIXEL PCLOSE {
|
||||||
$$ = rofi_theme_property_create ( P_PADDING );
|
$$ = rofi_theme_property_create ( P_PADDING );
|
||||||
$$->name = $1;
|
$$->name = $1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue