mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Updated themes
This commit is contained in:
parent
fbe8c1e345
commit
27adf0311b
@ -374,7 +374,7 @@ _rosterwin_contacts_by_presence(ProfLayoutSplit *layout, const char *const prese
|
|||||||
int itemcount = g_slist_length(contacts);
|
int itemcount = g_slist_length(contacts);
|
||||||
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title_str, " (%d)", itemcount);
|
g_string_append_printf(title_str, " (%d)", itemcount);
|
||||||
} else {
|
} else if (itemcount > 0) {
|
||||||
g_string_append_printf(title_str, " (%d)", itemcount);
|
g_string_append_printf(title_str, " (%d)", itemcount);
|
||||||
}
|
}
|
||||||
} else if (g_strcmp0(countpref, "unread") == 0) {
|
} else if (g_strcmp0(countpref, "unread") == 0) {
|
||||||
@ -391,7 +391,7 @@ _rosterwin_contacts_by_presence(ProfLayoutSplit *layout, const char *const prese
|
|||||||
}
|
}
|
||||||
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title_str, " (%d)", unreadcount);
|
g_string_append_printf(title_str, " (%d)", unreadcount);
|
||||||
} else {
|
} else if (unreadcount > 0) {
|
||||||
g_string_append_printf(title_str, " (%d)", unreadcount);
|
g_string_append_printf(title_str, " (%d)", unreadcount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -445,7 +445,7 @@ _rosterwin_contacts_by_group(ProfLayoutSplit *layout, char *group, gboolean newl
|
|||||||
int itemcount = g_slist_length(contacts);
|
int itemcount = g_slist_length(contacts);
|
||||||
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title, " (%d)", itemcount);
|
g_string_append_printf(title, " (%d)", itemcount);
|
||||||
} else {
|
} else if (itemcount > 0) {
|
||||||
g_string_append_printf(title, " (%d)", itemcount);
|
g_string_append_printf(title, " (%d)", itemcount);
|
||||||
}
|
}
|
||||||
} else if (g_strcmp0(countpref, "unread") == 0) {
|
} else if (g_strcmp0(countpref, "unread") == 0) {
|
||||||
@ -462,7 +462,7 @@ _rosterwin_contacts_by_group(ProfLayoutSplit *layout, char *group, gboolean newl
|
|||||||
}
|
}
|
||||||
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
} else {
|
} else if (unreadcount > 0) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -514,7 +514,7 @@ _rosterwin_contacts_by_no_group(ProfLayoutSplit *layout, gboolean newline)
|
|||||||
int itemcount = g_slist_length(contacts);
|
int itemcount = g_slist_length(contacts);
|
||||||
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (itemcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title, " (%d)", itemcount);
|
g_string_append_printf(title, " (%d)", itemcount);
|
||||||
} else {
|
} else if (itemcount > 0) {
|
||||||
g_string_append_printf(title, " (%d)", itemcount);
|
g_string_append_printf(title, " (%d)", itemcount);
|
||||||
}
|
}
|
||||||
} else if (g_strcmp0(countpref, "unread") == 0) {
|
} else if (g_strcmp0(countpref, "unread") == 0) {
|
||||||
@ -531,7 +531,7 @@ _rosterwin_contacts_by_no_group(ProfLayoutSplit *layout, gboolean newline)
|
|||||||
}
|
}
|
||||||
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
} else {
|
} else if (unreadcount > 0) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -811,13 +811,13 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline)
|
|||||||
int count = g_list_length(rooms_sorted);
|
int count = g_list_length(rooms_sorted);
|
||||||
if (count == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (count == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title_str, " (%d)", count);
|
g_string_append_printf(title_str, " (%d)", count);
|
||||||
} else {
|
} else if (count > 0) {
|
||||||
g_string_append_printf(title_str, " (%d)", count);
|
g_string_append_printf(title_str, " (%d)", count);
|
||||||
}
|
}
|
||||||
} else if (g_strcmp0(countpref, "unread") == 0) {
|
} else if (g_strcmp0(countpref, "unread") == 0) {
|
||||||
if (unread == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (unread == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title_str, " (%d)", unread);
|
g_string_append_printf(title_str, " (%d)", unread);
|
||||||
} else {
|
} else if (unread > 0) {
|
||||||
g_string_append_printf(title_str, " (%d)", unread);
|
g_string_append_printf(title_str, " (%d)", unread);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -935,7 +935,7 @@ rosterwin_roster(void)
|
|||||||
}
|
}
|
||||||
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
if (unreadcount == 0 && prefs_get_boolean(PREF_ROSTER_COUNT_ZERO)) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
} else {
|
} else if (unreadcount > 0) {
|
||||||
g_string_append_printf(title, " (%d)", unreadcount);
|
g_string_append_printf(title, " (%d)", unreadcount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,6 +120,8 @@ roster.rooms.unread=after
|
|||||||
roster.rooms.pos=last
|
roster.rooms.pos=last
|
||||||
roster.private=room
|
roster.private=room
|
||||||
roster.private.char=/
|
roster.private.char=/
|
||||||
|
roster.count=unread
|
||||||
|
roster.count.zero=false
|
||||||
occupants=true
|
occupants=true
|
||||||
occupants.size=15
|
occupants.size=15
|
||||||
occupants.jid=false
|
occupants.jid=false
|
||||||
|
@ -46,6 +46,8 @@ roster.rooms.pos=last
|
|||||||
roster.rooms.char=#
|
roster.rooms.char=#
|
||||||
roster.private=room
|
roster.private=room
|
||||||
roster.private.char=/
|
roster.private.char=/
|
||||||
|
roster.count=unread
|
||||||
|
roster.count.zero=true
|
||||||
privileges=true
|
privileges=true
|
||||||
presence=true
|
presence=true
|
||||||
intype=true
|
intype=true
|
||||||
|
@ -34,6 +34,8 @@ roster.status=false
|
|||||||
roster.contacts=true
|
roster.contacts=true
|
||||||
roster.rooms=false
|
roster.rooms=false
|
||||||
roster.rooms.unread=off
|
roster.rooms.unread=off
|
||||||
|
roster.count=off
|
||||||
|
roster.count.zero=false
|
||||||
privileges=false
|
privileges=false
|
||||||
presence=false
|
presence=false
|
||||||
intype=false
|
intype=false
|
||||||
|
Loading…
Reference in New Issue
Block a user