1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'master' into osx-functional

This commit is contained in:
James Booth 2016-02-11 00:47:16 +00:00
commit b23f2f55ce
21 changed files with 49 additions and 7 deletions

View File

@ -662,7 +662,7 @@ static struct cmd_t command_defs[] =
CMD_TAG_GROUPCHAT) CMD_TAG_GROUPCHAT)
CMD_SYN( CMD_SYN(
"/affiliation set <affiliation> <jid> [<reason>]", "/affiliation set <affiliation> <jid> [<reason>]",
"/list [<affiliation>]") "/affiliation list [<affiliation>]")
CMD_DESC( CMD_DESC(
"Manage room affiliations. " "Manage room affiliations. "
"Affiliation may be one of owner, admin, member, outcast or none.") "Affiliation may be one of owner, admin, member, outcast or none.")
@ -678,7 +678,7 @@ static struct cmd_t command_defs[] =
CMD_TAG_GROUPCHAT) CMD_TAG_GROUPCHAT)
CMD_SYN( CMD_SYN(
"/role set <role> <nick> [<reason>]", "/role set <role> <nick> [<reason>]",
"/list [<role>]") "/role list [<role>]")
CMD_DESC( CMD_DESC(
"Manage room roles. " "Manage room roles. "
"Role may be one of moderator, participant, visitor or none.") "Role may be one of moderator, participant, visitor or none.")

View File

@ -82,6 +82,8 @@ theme_init(const char *const theme_name)
g_hash_table_insert(defaults, strdup("main.splash"), strdup("cyan")); g_hash_table_insert(defaults, strdup("main.splash"), strdup("cyan"));
g_hash_table_insert(defaults, strdup("error"), strdup("red")); g_hash_table_insert(defaults, strdup("error"), strdup("red"));
g_hash_table_insert(defaults, strdup("incoming"), strdup("yellow")); g_hash_table_insert(defaults, strdup("incoming"), strdup("yellow"));
g_hash_table_insert(defaults, strdup("mention"), strdup("yellow"));
g_hash_table_insert(defaults, strdup("trigger"), strdup("yellow"));
g_hash_table_insert(defaults, strdup("input.text"), strdup("white")); g_hash_table_insert(defaults, strdup("input.text"), strdup("white"));
g_hash_table_insert(defaults, strdup("main.time"), strdup("white")); g_hash_table_insert(defaults, strdup("main.time"), strdup("white"));
g_hash_table_insert(defaults, strdup("titlebar.text"), strdup("white")); g_hash_table_insert(defaults, strdup("titlebar.text"), strdup("white"));
@ -724,6 +726,8 @@ theme_attrs(theme_item_t attrs)
case THEME_SPLASH: _theme_prep_fgnd("main.splash", lookup_str, &bold); break; case THEME_SPLASH: _theme_prep_fgnd("main.splash", lookup_str, &bold); break;
case THEME_ERROR: _theme_prep_fgnd("error", lookup_str, &bold); break; case THEME_ERROR: _theme_prep_fgnd("error", lookup_str, &bold); break;
case THEME_INCOMING: _theme_prep_fgnd("incoming", lookup_str, &bold); break; case THEME_INCOMING: _theme_prep_fgnd("incoming", lookup_str, &bold); break;
case THEME_MENTION: _theme_prep_fgnd("mention", lookup_str, &bold); break;
case THEME_TRIGGER: _theme_prep_fgnd("trigger", lookup_str, &bold); break;
case THEME_INPUT_TEXT: _theme_prep_fgnd("input.text", lookup_str, &bold); break; case THEME_INPUT_TEXT: _theme_prep_fgnd("input.text", lookup_str, &bold); break;
case THEME_TIME: _theme_prep_fgnd("main.time", lookup_str, &bold); break; case THEME_TIME: _theme_prep_fgnd("main.time", lookup_str, &bold); break;
case THEME_TITLE_TEXT: _theme_prep_fgnd("titlebar.text", lookup_str, &bold); break; case THEME_TITLE_TEXT: _theme_prep_fgnd("titlebar.text", lookup_str, &bold); break;

View File

@ -46,6 +46,8 @@ typedef enum {
THEME_SPLASH, THEME_SPLASH,
THEME_ERROR, THEME_ERROR,
THEME_INCOMING, THEME_INCOMING,
THEME_MENTION,
THEME_TRIGGER,
THEME_INPUT_TEXT, THEME_INPUT_TEXT,
THEME_TIME, THEME_TIME,
THEME_TITLE_TEXT, THEME_TITLE_TEXT,

View File

@ -334,10 +334,10 @@ cons_show_incoming_room_message(const char *const nick, const char *const room,
if (g_strcmp0(muc_show, "all") == 0) { if (g_strcmp0(muc_show, "all") == 0) {
if (mention) { if (mention) {
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room mention: %s in %s (win %d)", nick, room, ui_index); win_vprint(console, '-', 0, NULL, 0, THEME_MENTION, "", "<< room mention: %s in %s (win %d)", nick, room, ui_index);
} else if (triggers) { } else if (triggers) {
char *triggers_str = _room_triggers_to_string(triggers); char *triggers_str = _room_triggers_to_string(triggers);
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room trigger %s: %s in %s (win %d)", triggers_str, nick, room, ui_index); win_vprint(console, '-', 0, NULL, 0, THEME_TRIGGER, "", "<< room trigger %s: %s in %s (win %d)", triggers_str, nick, room, ui_index);
free(triggers_str); free(triggers_str);
} else { } else {
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room message: %s in %s (win %d)", nick, room, ui_index); win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room message: %s in %s (win %d)", nick, room, ui_index);
@ -346,11 +346,11 @@ cons_show_incoming_room_message(const char *const nick, const char *const room,
} else if (g_strcmp0(muc_show, "first") == 0) { } else if (g_strcmp0(muc_show, "first") == 0) {
if (mention) { if (mention) {
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room mention: %s in %s (win %d)", nick, room, ui_index); win_vprint(console, '-', 0, NULL, 0, THEME_MENTION, "", "<< room mention: %s in %s (win %d)", nick, room, ui_index);
cons_alert(); cons_alert();
} else if (triggers) { } else if (triggers) {
char *triggers_str = _room_triggers_to_string(triggers); char *triggers_str = _room_triggers_to_string(triggers);
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< room trigger %s: %s in %s (win %d)", triggers_str, nick, room, ui_index); win_vprint(console, '-', 0, NULL, 0, THEME_TRIGGER, "", "<< room trigger %s: %s in %s (win %d)", triggers_str, nick, room, ui_index);
free(triggers_str); free(triggers_str);
cons_alert(); cons_alert();
} else if (unread == 0) { } else if (unread == 0) {
@ -2208,6 +2208,8 @@ cons_theme_properties(void)
_cons_theme_prop(THEME_UNSUBSCRIBED, "unsubscribed"); _cons_theme_prop(THEME_UNSUBSCRIBED, "unsubscribed");
_cons_theme_prop(THEME_INCOMING, "incoming"); _cons_theme_prop(THEME_INCOMING, "incoming");
_cons_theme_prop(THEME_MENTION, "mention");
_cons_theme_prop(THEME_TRIGGER, "trigger");
_cons_theme_prop(THEME_TYPING, "typing"); _cons_theme_prop(THEME_TYPING, "typing");
_cons_theme_prop(THEME_GONE, "gone"); _cons_theme_prop(THEME_GONE, "gone");

View File

@ -38,6 +38,8 @@ dnd=
xa= xa=
offline= offline=
incoming= incoming=
mention=
trigger=
typing= typing=
gone= gone=
error= error=

View File

@ -38,6 +38,8 @@ dnd=blue
xa=cyan xa=cyan
offline=bold_black offline=bold_black
incoming=bold_cyan incoming=bold_cyan
mention=bold_blue
trigger=bold_blue
typing=cyan typing=cyan
gone=blue gone=blue
error=bold_white error=bold_white

View File

@ -22,6 +22,8 @@ typing=cyan
gone=red gone=red
error=red error=red
incoming=yellow incoming=yellow
mention=cyan
trigger=cyan
roominfo=green roominfo=green
me=black_bold me=black_bold
them=yellow them=yellow

View File

@ -38,6 +38,8 @@ dnd=bold_red
xa=bold_cyan xa=bold_cyan
offline=bold_blue offline=bold_blue
incoming=bold_yellow incoming=bold_yellow
mention=bold_green
trigger=bold_green
typing=bold_yellow typing=bold_yellow
gone=bold_red gone=bold_red
error=bold_red error=bold_red

View File

@ -38,6 +38,8 @@ dnd=magenta
xa=blue xa=blue
offline=red offline=red
incoming=bold_yellow incoming=bold_yellow
mention=bold_cyan
trigger=bold_blue
typing=yellow typing=yellow
gone=red gone=red
error=red error=red
@ -92,7 +94,7 @@ enc.warn=true
resource.title=true resource.title=true
resource.message=true resource.message=true
statuses.console=all statuses.console=all
statuses.chat=all statuses.chat=none
statuses.muc=none statuses.muc=none
roster=true roster=true
roster.offline=true roster.offline=true

View File

@ -38,6 +38,8 @@ dnd=magenta
xa=blue xa=blue
offline=red offline=red
incoming=bold_yellow incoming=bold_yellow
mention=bold_cyan
trigger=bold_blue
typing=yellow typing=yellow
gone=red gone=red
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=bold_black
xa=blue xa=blue
offline=bold_black offline=bold_black
incoming=bold_yellow incoming=bold_yellow
mention=bold_cyan
trigger=bold_cyan
typing=yellow typing=yellow
gone=bold_black gone=bold_black
error=bold_black error=bold_black

View File

@ -38,6 +38,8 @@ dnd=green
xa=green xa=green
offline=green offline=green
incoming=bold_green incoming=bold_green
mention=bold_green
trigger=bold_green
typing=green typing=green
gone=green gone=green
error=bold_green error=bold_green

View File

@ -38,6 +38,8 @@ dnd=megenta
xa=cyan xa=cyan
offline=green offline=green
incoming=yellow incoming=yellow
mention=green
trigger=green
typing=magenta typing=magenta
gone=yellow gone=yellow
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=green
xa=yellow xa=yellow
offline=bold_black offline=bold_black
incoming=yellow incoming=yellow
mention=green
trigger=green
typing=green typing=green
gone=red gone=red
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=white
xa=white xa=white
offline=white offline=white
incoming=white incoming=white
mention=white
trigger=white
typing=white typing=white
gone=white gone=white
error=white error=white

View File

@ -38,6 +38,8 @@ dnd=white
xa=white xa=white
offline=white offline=white
incoming=blue incoming=blue
mention=blue
trigger=blue
typing=black typing=black
gone=green gone=green
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=red
xa=cyan xa=cyan
offline=red offline=red
incoming=yellow incoming=yellow
mention=yellow
trigger=yellow
typing=yellow typing=yellow
gone=yellow gone=yellow
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=bold_red
xa=bold_cyan xa=bold_cyan
offline=bold_red offline=bold_red
incoming=bold_yellow incoming=bold_yellow
mention=bold_yellow
trigger=bold_yellow
typing=bold_yellow typing=bold_yellow
gone=bold_yellow gone=bold_yellow
error=bold_red error=bold_red

View File

@ -38,6 +38,8 @@ dnd=green
xa=yellow xa=yellow
offline=white offline=white
incoming=yellow incoming=yellow
mention=green
trigger=green
typing=green typing=green
gone=red gone=red
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=green
xa=yellow xa=yellow
offline=bold_black offline=bold_black
incoming=yellow incoming=yellow
mention=red
trigger=red
typing=green typing=green
gone=red gone=red
error=red error=red

View File

@ -38,6 +38,8 @@ dnd=red
xa=cyan xa=cyan
offline=red offline=red
incoming=yellow incoming=yellow
mention=yellow
trigger=yellow
typing=yellow typing=yellow
gone=red gone=red
error=red error=red