mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
recipient_row: Use a dimmed stream color for background.
Following important changes are being made here: * color_class lib is removed since it not used anywhere now. * We don't need the `dark_background` class since the background color is already adjusted based on color scheme. So, all instances of it being used is removed.
This commit is contained in:
@@ -11,7 +11,6 @@ import render_single_message from "../templates/single_message.hbs";
|
||||
|
||||
import * as activity from "./activity";
|
||||
import * as blueslip from "./blueslip";
|
||||
import * as color_class from "./color_class";
|
||||
import * as compose from "./compose";
|
||||
import * as compose_fade from "./compose_fade";
|
||||
import * as condense from "./condense";
|
||||
@@ -174,9 +173,8 @@ function populate_group_from_message_container(group, message_container) {
|
||||
group.is_private = message_container.msg.is_private;
|
||||
|
||||
if (group.is_stream) {
|
||||
group.background_color = stream_data.get_color(message_container.msg.stream);
|
||||
group.color_class = color_class.get_css_class(group.background_color);
|
||||
const color = stream_data.get_color(message_container.msg.stream);
|
||||
group.recipient_bar_color = stream_color.get_recipient_bar_color(color);
|
||||
group.stream_privacy_icon_color = stream_color.get_stream_privacy_icon_color(color);
|
||||
group.invite_only = stream_data.is_invite_only_by_stream_name(message_container.msg.stream);
|
||||
group.is_web_public = stream_data.is_web_public(message_container.msg.stream_id);
|
||||
@@ -1558,4 +1556,13 @@ export class MessageListView {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
update_recipient_bar_background_color() {
|
||||
const $table = rows.get_table(this.table_name);
|
||||
const $stream_headers = $table.find(".message_header_stream");
|
||||
for (const stream_header of $stream_headers) {
|
||||
const $stream_header = $(stream_header);
|
||||
stream_color.update_stream_recipient_color($stream_header);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user