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;