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.

navbar: Just use stored stream color in `colorize_tab_bar()`.

YashRE426766b0ab4313
diff --git a/static/js/tab_bar.js b/static/js/tab_bar.js
index 8a0cc36a1ea..ab1b52ae5b1 100644
--- a/static/js/tab_bar.js
+++ b/static/js/tab_bar.js
@@ -51,10 +51,9 @@ exports.colorize_tab_bar = function () {
const filter = narrow_state.filter();
if (filter === undefined || !filter.has_operator('stream') || !filter._stream_params) {return;}
const color_for_stream = stream_data.get_color(filter._stream_params._stream_name);
- const stream_light = colorspace.getHexColor(colorspace.getDecimalColor(color_for_stream));
- $("#tab_list .fa-hashtag").css('color', stream_light);
- $("#tab_list .fa-lock").css('color', stream_light);
- $("#tab_list .fa-globe").css('color', stream_light);
+ $("#tab_list .fa-hashtag").css('color', color_for_stream);
+ $("#tab_list .fa-lock").css('color', color_for_stream);
+ $("#tab_list .fa-globe").css('color', color_for_stream);
};
function append_and_display_title_area(tab_bar_data) {