Remove color from prompt, can be added in theme now.

fixed: #637
This commit is contained in:
Dave Davenport 2017-10-30 21:40:13 +01:00
parent c405c748a2
commit 1dccdb302e
3 changed files with 2 additions and 11 deletions

View File

@ -52,8 +52,6 @@ typedef enum
MENU_ERROR_DIALOG = 4,
/** INDICATOR */
MENU_INDICATOR = 8,
/** Show column */
MENU_PROMPT_COLON = 16,
} MenuFlags;
/**

View File

@ -182,7 +182,7 @@ static void run_switcher ( ModeMode mode )
return;
}
curr_switcher = mode;
RofiViewState * state = rofi_view_create ( modi[mode], config.filter, MENU_PROMPT_COLON, process_result );
RofiViewState * state = rofi_view_create ( modi[mode], config.filter, 0, process_result );
if ( state ) {
rofi_view_set_active ( state );
}

View File

@ -244,16 +244,9 @@ static void rofi_view_update_prompt ( RofiViewState *state )
{
if ( state->prompt ) {
const char *str = mode_get_display_name ( state->sw );
if ( ( state->menu_flags & MENU_PROMPT_COLON ) != 0 ) {
char *pr = g_strconcat ( str, ":", NULL );
textbox_text ( state->prompt, pr );
g_free ( pr );
}
else {
textbox_text ( state->prompt, str );
}
}
}
/**
* Calculates the window position