diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-12-02 21:14:31 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-12-02 21:14:31 +0100 |
commit | 2e21c2b63eb1b837b9f33598263302592df7e30e (patch) | |
tree | 999ae13b4681fefd4d481c09085d445ca828fc72 /source/theme.c | |
parent | b7186a2ff48c617300b23d746d78b48f5d23cb73 (diff) |
Remove more old config options that are now part of theme.
Diffstat (limited to 'source/theme.c')
-rw-r--r-- | source/theme.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/source/theme.c b/source/theme.c index 4bf005ea..89244010 100644 --- a/source/theme.c +++ b/source/theme.c @@ -1060,59 +1060,6 @@ gboolean rofi_theme_is_empty ( void ) return FALSE; } -#ifdef THEME_CONVERTER - -void rofi_theme_convert_old ( void ) -{ - if ( config.separator_style != NULL ) { - if ( g_strcmp0 ( config.separator_style, "none" ) == 0 ) { - const char *const str = "#listview { border: 0px; }"; - rofi_theme_parse_string ( str ); - const char *const str2 = "#mode-switcher { border: 0px; }"; - rofi_theme_parse_string ( str2 ); - const char *const str3 = "#message { border: 0px; }"; - rofi_theme_parse_string ( str3 ); - } - else if ( g_strcmp0 ( config.separator_style, "solid" ) == 0 ) { - const char *const str = "#listview { border: 2px solid 0px 0px 0px; }"; - rofi_theme_parse_string ( str ); - const char *const str2 = "#mode-switcher { border: 2px solid 0px 0px 0px; }"; - rofi_theme_parse_string ( str2 ); - const char *const str3 = "#message { border: 2px solid 0px 0px 0px; }"; - rofi_theme_parse_string ( str3 ); - } /* dash is default */ - } - /* Line Margin */ - { - char *str = g_strdup_printf ( "#listview { spacing: %dpx;}", config.line_margin ); - rofi_theme_parse_string ( str ); - g_free ( str ); - } - /* Line Padding */ - { - char *str = g_strdup_printf ( "#element, inputbar, message { padding: %dpx;}", config.line_padding ); - rofi_theme_parse_string ( str ); - g_free ( str ); - } - if ( config.hide_scrollbar ) { - const char *str = "#listview { scrollbar: false; }"; - rofi_theme_parse_string ( str ); - } - else { - const char *str = "#listview { scrollbar: true; }"; - rofi_theme_parse_string ( str ); - char *str2 = g_strdup_printf ( "#scrollbar { handle-width: %dpx; }", config.scrollbar_width ); - rofi_theme_parse_string ( str2 ); - g_free ( str2 ); - } - if ( config.fake_transparency ) { - char *str = g_strdup_printf ( "#window { transparency: \"%s\"; }", config.fake_background ); - rofi_theme_parse_string ( str ); - g_free ( str ); - } -} -#endif // THEME_CONVERTER - char * rofi_theme_parse_prepare_file ( const char *file, const char *parent_file ) { char *filename = rofi_expand_path ( file ); |