summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-06-14 19:29:05 +0200
committerDave Davenport <qball@blame.services>2021-06-14 19:29:05 +0200
commit0f21541327418e7aaa99a8192eb79ed9c6438b88 (patch)
treecda6a54d5ee059c796fcb7b24ab1abb9bc706bc5 /include
parent828aaa231a84f9ad23cf836a71b58290b5e217e8 (diff)
[Configuration] Add start of more 'theme' based configuration.
Nested CSS blocks in configuration {} are parsed into rofi_configuration.
Diffstat (limited to 'include')
-rw-r--r--include/theme.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/theme.h b/include/theme.h
index 37a5a09c..94a7c1d7 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -88,6 +88,14 @@ typedef struct ThemeWidget
extern ThemeWidget *rofi_theme;
/**
+ * Used to store config options.
+ */
+extern ThemeWidget *rofi_theme;
+
+
+extern ThemeWidget *rofi_configuration;
+
+/**
* @param base Handle to the current level in the theme.
* @param name Name of the new element.
*
@@ -333,6 +341,7 @@ void distance_get_linestyle ( RofiDistance d, cairo_t *draw );
* @returns the ThemeWidget if found, otherwise NULL.
*/
ThemeWidget *rofi_theme_find_widget ( const char *name, const char *state, gboolean exact );
+ThemeWidget *rofi_config_find_widget ( const char *name, const char *state, gboolean exact );
/**
* @param widget The widget to find the property on.