mirror of https://github.com/davatorium/rofi.git
Fix typo in theme name.
This commit is contained in:
parent
4858dad631
commit
efd1e07755
|
@ -135,6 +135,15 @@ void rofi_theme_parse_file ( const char *file )
|
||||||
}
|
}
|
||||||
while ( yyparse() );
|
while ( yyparse() );
|
||||||
}
|
}
|
||||||
|
static Widget *rofi_theme_find_single ( Widget *widget, const char *name)
|
||||||
|
{
|
||||||
|
for ( unsigned int j = 0; j < widget->num_widgets;j++){
|
||||||
|
if ( g_strcmp0(widget->widgets[j]->name, name ) == 0 ){
|
||||||
|
return widget->widgets[j];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return widget;
|
||||||
|
}
|
||||||
|
|
||||||
static Widget *rofi_theme_find ( Widget *widget , const char *name )
|
static Widget *rofi_theme_find ( Widget *widget , const char *name )
|
||||||
{
|
{
|
||||||
|
@ -145,12 +154,10 @@ static Widget *rofi_theme_find ( Widget *widget , const char *name )
|
||||||
int found = TRUE;
|
int found = TRUE;
|
||||||
for ( unsigned int i = 0; found && names && names[i]; i++ ){
|
for ( unsigned int i = 0; found && names && names[i]; i++ ){
|
||||||
found = FALSE;
|
found = FALSE;
|
||||||
for ( unsigned int j = 0; j < widget ->num_widgets;j++){
|
Widget *f = rofi_theme_find_single ( widget, names[i]);
|
||||||
if ( g_strcmp0(widget->widgets[j]->name, names[i]) == 0 ){
|
if ( f != widget ){
|
||||||
widget = widget->widgets[j];
|
widget = f;
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_strfreev(names);
|
g_strfreev(names);
|
||||||
|
|
|
@ -145,8 +145,8 @@ textbox* textbox_create ( const char *name, TextboxFlags flags, short x, short y
|
||||||
|
|
||||||
const char const *const theme_prop_names[][3] = {
|
const char const *const theme_prop_names[][3] = {
|
||||||
{"normal.normal", "selected.normal", "alternate.normal"},
|
{"normal.normal", "selected.normal", "alternate.normal"},
|
||||||
{"urgent.normal", "selected.urgent", "alternate.urgent"},
|
{"normal.urgent", "selected.urgent", "alternate.urgent"},
|
||||||
{"active.normal", "selected.active", "alternate.active"},
|
{"normal.active", "selected.active", "alternate.active"},
|
||||||
};
|
};
|
||||||
|
|
||||||
void textbox_font ( textbox *tb, TextBoxFontType tbft )
|
void textbox_font ( textbox *tb, TextBoxFontType tbft )
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
! User: qball
|
! User: qball
|
||||||
! ------------------------------------------------------------------------------
|
! ------------------------------------------------------------------------------
|
||||||
! "Color scheme for normal row" Set from: File
|
! "Color scheme for normal row" Set from: File
|
||||||
rofi.color-normal: argb:0000000, #dbdfbc, argb:00000000, #dbdfbc, #02143f
|
rofi.color-normal: argb:00000000, #dbdfbc, argb:00000000, #dbdfbc, #02143f
|
||||||
! "Color scheme for urgent row" Set from: File
|
! "Color scheme for urgent row" Set from: File
|
||||||
rofi.color-urgent: argb:0000000, #ff81ff, argb:00000000, #ff817f, #02143f
|
rofi.color-urgent: argb:00000000, #ff81ff, argb:00000000, #ff817f, #02143f
|
||||||
! "Color scheme for active row" Set from: File
|
! "Color scheme for active row" Set from: File
|
||||||
rofi.color-active: argb:0000000, #8ac4ff, argb:00000000, #8ac4ff, #02143f
|
rofi.color-active: argb:00000000, #8ac4ff, argb:00000000, #8ac4ff, #02143f
|
||||||
! "Color scheme window" Set from: File
|
! "Color scheme window" Set from: File
|
||||||
rofi.color-window: argb:dd000021, #dbdfbc, #dbdfbc
|
rofi.color-window: argb:dd000021, #dbdfbc, #dbdfbc
|
||||||
! "Separator style (none, dash, solid)" Set from: XResources
|
! "Separator style (none, dash, solid)" Set from: XResources
|
||||||
|
|
Loading…
Reference in New Issue