Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_topics: Show read topics in a darker shade.

Aman Agrawal8951f77e5df1
diff --git a/static/styles/night_mode.scss b/static/styles/night_mode.scss
index cb777a65921..ec946ece619 100644
--- a/static/styles/night_mode.scss
+++ b/static/styles/night_mode.scss
@@ -424,6 +424,18 @@ on a dark background, and don't change the dark labels dark either. */
}
}
+ #recent_topics_table tr {
+ background-color: hsl(212, 28%, 18%);
+
+ &:hover {
+ background-color: hsl(208, 26%, 11%);
+ }
+ }
+
+ #recent_topics_table .unread_topic {
+ background-color: hsl(211, 28%, 16%);
+ }
+
.btn-recent-selected,
.recent_topics_table thead th {
background-color: hsl(0, 0%, 0%) !important;
diff --git a/static/styles/recent_topics.scss b/static/styles/recent_topics.scss
index 5e506d71873..acc6aa6a485 100644
--- a/static/styles/recent_topics.scss
+++ b/static/styles/recent_topics.scss
@@ -200,6 +200,23 @@
line-height: 24px;
}
+ tr {
+ background-color: hsl(100, 11%, 96%);
+
+ &:hover {
+ background-color: hsl(210, 100%, 97%);
+ }
+ }
+
+ .unread_topic {
+ background-color: hsl(0, 0%, 100%);
+ }
+
+ .last_msg_time {
+ float: left;
+ margin-right: 5px;
+ }
+
thead th {
background-color: hsl(0, 0%, 100%);
color: inherit;
diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbs
index 8d873c07d77..ec30a38fd43 100644
--- a/static/templates/recent_topic_row.hbs
+++ b/static/templates/recent_topic_row.hbs
@@ -1,4 +1,4 @@
-<tr id="recent_topic:{{topic_key}}" data-unread-count="{{unread_count}}" data-muted="{{muted}}" data-participated="{{participated}}">
+<tr id="recent_topic:{{topic_key}}" {{#if unread_count}}class="unread_topic"{{/if}} data-unread-count="{{unread_count}}" data-muted="{{muted}}" data-participated="{{participated}}">
<td class="recent_topic_stream">
<span id="stream_sidebar_privacy_swatch_{{stream_id}}" class="stream-privacy filter-icon" style="color: {{stream_color}}">
{{> stream_privacy }}