Files
zulip/web/src/stream_bar.js
evykassirer 02ae5818ae compose: Add privacy icons to the stream dropdown menu.
These were previously used in the input form field and
this commit removes the code that supported that and
replaces it by using existing dropdown_widget functionality
to display the icons in the compose dropdown.
2023-04-20 16:09:55 -07:00

14 lines
453 B
JavaScript

import * as stream_data from "./stream_data";
// In an attempt to decrease mixing, set stream bar
// color look like the stream being used.
// (In particular, if there's a color associated with it,
// have that color be reflected here too.)
export function decorate(stream_name, $element) {
if (stream_name === undefined) {
return;
}
const color = stream_data.get_color(stream_name);
$element.css("background-color", color);
}