mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
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.
14 lines
453 B
JavaScript
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);
|
|
}
|