summaryrefslogtreecommitdiffstats
path: root/lexer/theme-parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r--lexer/theme-parser.y7
1 files changed, 7 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index 8efcdc58..5e1f49c4 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -237,6 +237,7 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b)
%token T_WHITESPACE "White space"
%token T_PDEFAULTS "Default settings section ( '* { ... }')"
%token T_CONFIGURATION "Configuration block"
+%token T_RESET_THEME "Reset Theme"
%token T_COLOR_TRANSPARENT "Transparent"
@@ -322,6 +323,12 @@ t_entry_list:
%empty {
$$ = g_slice_new0 ( ThemeWidget );
}
+| t_entry_list T_RESET_THEME {
+ rofi_theme_reset();
+ rofi_theme_free($1);
+ $$ = g_slice_new0 ( ThemeWidget );
+}
+
| t_entry_list t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE
{
for ( GList *liter = g_list_first ( $3); liter; liter = g_list_next ( liter ) ) {