mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 22:00:20 +00:00
Alias 'color' property name to 'text-color'
This commit is contained in:
parent
7c1ecb4707
commit
2a5cb6f621
3 changed files with 4 additions and 2 deletions
|
@ -395,6 +395,8 @@ if ( queue == NULL ){
|
||||||
|
|
||||||
<NAMESTR>\.|{WHITESPACE} { return T_NSEP; }
|
<NAMESTR>\.|{WHITESPACE} { return T_NSEP; }
|
||||||
<NAMESTR>,{WHITESPACE}* { return T_SSEP; }
|
<NAMESTR>,{WHITESPACE}* { return T_SSEP; }
|
||||||
|
/* Alias color to text-color */
|
||||||
|
<SECTION>"color" { yylval->sval = g_strdup("text-color"); return T_PROP_NAME;}
|
||||||
<SECTION>{WORD} { yylval->sval = g_strdup(yytext); return T_PROP_NAME;}
|
<SECTION>{WORD} { yylval->sval = g_strdup(yytext); return T_PROP_NAME;}
|
||||||
<NAMESTR>{WORD} { yylval->sval = g_strdup(yytext); return T_NAME_ELEMENT;}
|
<NAMESTR>{WORD} { yylval->sval = g_strdup(yytext); return T_NAME_ELEMENT;}
|
||||||
|
|
||||||
|
|
|
@ -485,7 +485,7 @@ Property *rofi_theme_find_property ( ThemeWidget *widget, PropertyType type, con
|
||||||
ThemeWidget *rofi_theme_find_widget ( const char *name, const char *state, gboolean exact )
|
ThemeWidget *rofi_theme_find_widget ( const char *name, const char *state, gboolean exact )
|
||||||
{
|
{
|
||||||
// First find exact match based on name.
|
// First find exact match based on name.
|
||||||
ThemeWidget *widget = rofi_theme_find ( rofi_theme, name, FALSE );
|
ThemeWidget *widget = rofi_theme_find_single ( rofi_theme, name );
|
||||||
widget = rofi_theme_find ( widget, state, exact );
|
widget = rofi_theme_find ( widget, state, exact );
|
||||||
|
|
||||||
return widget;
|
return widget;
|
||||||
|
|
|
@ -442,7 +442,7 @@ static void textbox_draw ( widget *wid, cairo_t *draw )
|
||||||
// TODO check if this is still needed after flatning.
|
// TODO check if this is still needed after flatning.
|
||||||
cairo_set_operator ( draw, CAIRO_OPERATOR_OVER );
|
cairo_set_operator ( draw, CAIRO_OPERATOR_OVER );
|
||||||
cairo_set_source_rgb ( draw, 0.0, 0.0, 0.0 );
|
cairo_set_source_rgb ( draw, 0.0, 0.0, 0.0 );
|
||||||
rofi_theme_get_color ( WIDGET ( tb ), "color", draw );
|
rofi_theme_get_color ( WIDGET ( tb ), "text-color", draw );
|
||||||
// draw the cursor
|
// draw the cursor
|
||||||
if ( tb->flags & TB_EDITABLE && tb->blink ) {
|
if ( tb->flags & TB_EDITABLE && tb->blink ) {
|
||||||
// We want to place the cursor based on the text shown.
|
// We want to place the cursor based on the text shown.
|
||||||
|
|
Loading…
Reference in a new issue