summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/theme.c b/source/theme.c
index 11bd0509..83556c2f 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -1532,6 +1532,15 @@ static void rofi_theme_parse_process_conditionals_int(workarea mon,
}
break;
}
+ case THEME_MEDIA_TYPE_BOOLEAN: {
+ if (widget->media->boolv) {
+ for (unsigned int x = 0; x < widget->num_widgets; x++) {
+ rofi_theme_parse_merge_widgets(rwidget, widget->widgets[x]);
+ }
+ }
+ break;
+ }
+
default: {
break;
}
@@ -1625,6 +1634,9 @@ ThemeMediaType rofi_theme_parse_media_type(const char *type) {
if (g_strcmp0(type, "max-aspect-ratio") == 0) {
return THEME_MEDIA_TYPE_MAX_ASPECT_RATIO;
}
+ if (g_strcmp0(type, "enabled") == 0) {
+ return THEME_MEDIA_TYPE_BOOLEAN;
+ }
return THEME_MEDIA_TYPE_INVALID;
}