mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix typo in theme name.
This commit is contained in:
parent
4858dad631
commit
efd1e07755
3 changed files with 18 additions and 11 deletions
|
@ -135,6 +135,15 @@ void rofi_theme_parse_file ( const char *file )
|
|||
}
|
||||
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 )
|
||||
{
|
||||
|
@ -145,12 +154,10 @@ static Widget *rofi_theme_find ( Widget *widget , const char *name )
|
|||
int found = TRUE;
|
||||
for ( unsigned int i = 0; found && names && names[i]; i++ ){
|
||||
found = FALSE;
|
||||
for ( unsigned int j = 0; j < widget ->num_widgets;j++){
|
||||
if ( g_strcmp0(widget->widgets[j]->name, names[i]) == 0 ){
|
||||
widget = widget->widgets[j];
|
||||
Widget *f = rofi_theme_find_single ( widget, names[i]);
|
||||
if ( f != widget ){
|
||||
widget = f;
|
||||
found = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
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] = {
|
||||
{"normal.normal", "selected.normal", "alternate.normal"},
|
||||
{"urgent.normal", "selected.urgent", "alternate.urgent"},
|
||||
{"active.normal", "selected.active", "alternate.active"},
|
||||
{"normal.urgent", "selected.urgent", "alternate.urgent"},
|
||||
{"normal.active", "selected.active", "alternate.active"},
|
||||
};
|
||||
|
||||
void textbox_font ( textbox *tb, TextBoxFontType tbft )
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
! User: qball
|
||||
! ------------------------------------------------------------------------------
|
||||
! "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
|
||||
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
|
||||
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
|
||||
rofi.color-window: argb:dd000021, #dbdfbc, #dbdfbc
|
||||
! "Separator style (none, dash, solid)" Set from: XResources
|
||||
|
|
Loading…
Reference in a new issue