diff --git a/include/theme.h b/include/theme.h index 2c9e95d0..e96636d2 100644 --- a/include/theme.h +++ b/include/theme.h @@ -37,10 +37,10 @@ typedef struct typedef struct { - Distance left; - Distance right; Distance top; + Distance right; Distance bottom; + Distance left; } Padding; typedef struct { diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index 6ee70032..e2f7795f 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -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;