1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

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, MENU_ERROR_DIALOG = 4,
/** INDICATOR */ /** INDICATOR */
MENU_INDICATOR = 8, MENU_INDICATOR = 8,
/** Show column */
MENU_PROMPT_COLON = 16,
} MenuFlags; } MenuFlags;
/** /**

View file

@ -182,7 +182,7 @@ static void run_switcher ( ModeMode mode )
return; return;
} }
curr_switcher = mode; 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 ) { if ( state ) {
rofi_view_set_active ( state ); rofi_view_set_active ( state );
} }

View file

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