summaryrefslogtreecommitdiffstats
path: root/source/xrmoptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r--source/xrmoptions.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c
index 03cfd301..2d3b5dd2 100644
--- a/source/xrmoptions.c
+++ b/source/xrmoptions.c
@@ -510,3 +510,21 @@ void print_help_msg ( const char *option, const char *type, const char*text, con
}
}
}
+
+void print_xresources_theme ( void )
+{
+ if( config.color_enabled != TRUE ) {
+ printf("! Dumping theme only works for the extended color scheme.\n");
+ return;
+ }
+ printf("! ------------------------------------------------------------------------------\n");
+ printf("! ROFI Color theme\n");
+ printf("! ------------------------------------------------------------------------------\n");
+ const char * namePrefix = "rofi";
+ unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions );
+ for ( unsigned int i = 0; i < entries; ++i ) {
+ if ( strncmp(xrmOptions[i].name, "color-",6) == 0){
+ xresource_dump_entry(namePrefix, &xrmOptions[i]);
+ }
+ }
+}