1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

Updated themes

This commit is contained in:
James Booth 2015-11-22 00:48:18 +00:00
parent 7a324abcd6
commit b4482b9fe1
6 changed files with 37 additions and 14 deletions

View File

@ -483,6 +483,18 @@ _load_preferences(void)
g_free(ch);
}
}
if (g_key_file_has_key(theme, "ui", "roster.contact.indent", NULL)) {
gint contact_indent = g_key_file_get_integer(theme, "ui", "roster.contact.indent", NULL);
prefs_set_roster_contact_indent(contact_indent);
}
if (g_key_file_has_key(theme, "ui", "roster.resource.indent", NULL)) {
gint resource_indent = g_key_file_get_integer(theme, "ui", "roster.resource.indent", NULL);
prefs_set_roster_resource_indent(resource_indent);
}
if (g_key_file_has_key(theme, "ui", "roster.presence.indent", NULL)) {
gint presence_indent = g_key_file_get_integer(theme, "ui", "roster.presence.indent", NULL);
prefs_set_roster_presence_indent(presence_indent);
}
_set_boolean_preference("privileges", PREF_MUC_PRIVILEGES);

View File

@ -148,7 +148,7 @@ _rosterwin_resources(ProfLayoutSplit *layout, PContact contact, int current_inde
}
g_string_append(msg, resource->name);
if (prefs_get_boolean(PREF_ROSTER_PRIORITY)) {
g_string_append_printf(msg, " [%d]", resource->priority);
g_string_append_printf(msg, " %d", resource->priority);
}
win_newline_lazy(layout->subwin);
win_print_nowrap(layout->subwin, msg->str, FALSE);

View File

@ -84,6 +84,9 @@ roster.priority=
roster.size=
roster.header.char=
roster.contact.char=
roster.contact.indent=
roster.resource.indent=
roster.presence.indent=
occupants=
occupants.size=
occupants.jid=

View File

@ -71,19 +71,21 @@ resource.message=true
statuses.console=all
statuses.chat=all
statuses.muc=all
roster=true
roster.offline=true
roster.resource=true
roster.presence=true
roster.status=true
roster.empty=true
roster.by=group
roster.order=presence
roster.count=true
roster.priority=true
roster.size=25
roster.header.char=@
roster.contact.char=-
roster.by=presence
roster.offline=true
roster.empty=false
roster.presence=true
roster.order=presence
roster.status=true
roster.resource=true
roster.priority=false
roster=true
roster.count=true
roster.size=25
roster.contact.indent=1
roster.resource.indent=2
roster.presence.indent=-1
roster.header.char=@
occupants=true
occupants.size=15
occupants.jid=false

View File

@ -31,6 +31,9 @@ roster.priority=true
roster.size=25
roster.header.char=-
roster.contact.char=-
roster.contact.indent=2
roster.resource.indent=2
roster.presence.indent=2
privileges=true
presence=true
intype=true

View File

@ -28,6 +28,9 @@ roster.order=presence
roster.count=false
roster.priority=false
roster.size=25
roster.contact.indent=0
roster.resource.indent=0
roster.presence.indent=-1
privileges=false
presence=false
intype=false