mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
14 lines
447 B
JavaScript
14 lines
447 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_id, $element) {
|
|
if (stream_id === undefined) {
|
|
return;
|
|
}
|
|
const color = stream_data.get_color(stream_id);
|
|
$element.css("background-color", color);
|
|
}
|