aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-07-06 21:33:48 +0200
committerfiaxh <git@lightrise.org>2020-07-06 21:52:33 +0200
commita21ddefbb987274991eb887e09d41274bd3e4a5e (patch)
tree39188a36b168021e836c5d1f27fa8348c6639654 /main/src/ui/conversation_selector
parent86420fdef11b2833fbc42549c8c5817031876d66 (diff)
downloaddino-a21ddefbb987274991eb887e09d41274bd3e4a5e.tar.gz
dino-a21ddefbb987274991eb887e09d41274bd3e4a5e.zip
Show dark unread counts for notifying conversations, light ones otherwise
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_selector_row.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala
index 7c25ee8d..665e49ca 100644
--- a/main/src/ui/conversation_selector/conversation_selector_row.vala
+++ b/main/src/ui/conversation_selector/conversation_selector_row.vala
@@ -219,6 +219,14 @@ public class ConversationSelectorRow : ListBoxRow {
unread_count_label.label = num_unread.to_string();
unread_count_label.visible = true;
+ if (conversation.get_notification_setting(stream_interactor) == Conversation.NotifySetting.ON) {
+ unread_count_label.get_style_context().add_class("unread-count-notify");
+ unread_count_label.get_style_context().remove_class("unread-count");
+ } else {
+ unread_count_label.get_style_context().add_class("unread-count");
+ unread_count_label.get_style_context().remove_class("unread-count-notify");
+ }
+
name_label.attributes.insert(attr_weight_new(Weight.BOLD));
time_label.attributes.insert(attr_weight_new(Weight.BOLD));
nick_label.attributes.insert(attr_weight_new(Weight.BOLD));