mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Config] Allow configuration block again in theme.
Avoid confusion/breakage.
This commit is contained in:
parent
92dae73bc1
commit
9b219afc5b
2 changed files with 14 additions and 16 deletions
|
@ -2,6 +2,7 @@ v1.7.2:
|
||||||
- [Build] Fix building without window mode enabled.
|
- [Build] Fix building without window mode enabled.
|
||||||
- [Config] Do not print out the 'theme' field in configuration on dump.
|
- [Config] Do not print out the 'theme' field in configuration on dump.
|
||||||
- [CI] test window mode less build.
|
- [CI] test window mode less build.
|
||||||
|
- Allow configuration block in theme again.
|
||||||
|
|
||||||
v1.7.1: Turtley amazing!
|
v1.7.1: Turtley amazing!
|
||||||
- [Theme] Fix highlight with only theme.
|
- [Theme] Fix highlight with only theme.
|
||||||
|
|
|
@ -313,31 +313,21 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b )
|
||||||
* First have the configuration blocks, then the theme.
|
* First have the configuration blocks, then the theme.
|
||||||
*/
|
*/
|
||||||
t_main
|
t_main
|
||||||
: t_configuration_list t_entry_list_included {
|
: t_entry_list_included {
|
||||||
// Dummy at this point.
|
// Dummy at this point.
|
||||||
if ( rofi_theme == NULL ) {
|
if ( rofi_theme == NULL ) {
|
||||||
rofi_theme_reset();
|
rofi_theme_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
rofi_theme_widget_add_properties ( rofi_theme, $2->properties );
|
rofi_theme_widget_add_properties ( rofi_theme, $1->properties );
|
||||||
for ( unsigned int i = 0; i < $2->num_widgets; i++ ) {
|
for ( unsigned int i = 0; i < $1->num_widgets; i++ ) {
|
||||||
ThemeWidget *d = $2->widgets[i];
|
ThemeWidget *d = $1->widgets[i];
|
||||||
rofi_theme_parse_merge_widgets(rofi_theme, d);
|
rofi_theme_parse_merge_widgets(rofi_theme, d);
|
||||||
}
|
}
|
||||||
rofi_theme_free ( $2 );
|
rofi_theme_free ( $1 );
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
t_configuration_list:
|
|
||||||
%empty {
|
|
||||||
if ( rofi_configuration == NULL ) {
|
|
||||||
rofi_configuration = g_slice_new0 ( ThemeWidget );
|
|
||||||
rofi_configuration->name = g_strdup ( "Root" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
| t_configuration_list T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Small dummy object to make the prefix optional.
|
* Small dummy object to make the prefix optional.
|
||||||
*/
|
*/
|
||||||
|
@ -359,8 +349,15 @@ t_entry_list {
|
||||||
|
|
||||||
|
|
||||||
t_entry_list:
|
t_entry_list:
|
||||||
%empty {
|
t_entry_list T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {
|
||||||
|
$$ = $1;
|
||||||
|
}
|
||||||
|
|%empty {
|
||||||
$$ = g_slice_new0 ( ThemeWidget );
|
$$ = g_slice_new0 ( ThemeWidget );
|
||||||
|
if ( rofi_configuration == NULL ) {
|
||||||
|
rofi_configuration = g_slice_new0 ( ThemeWidget );
|
||||||
|
rofi_configuration->name = g_strdup ( "Root" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
| t_entry_list t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE
|
| t_entry_list t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue