diff --git a/static/js/stream_settings_ui.js b/static/js/stream_settings_ui.js
index 24aebd0592..c61c7be25f 100644
--- a/static/js/stream_settings_ui.js
+++ b/static/js/stream_settings_ui.js
@@ -40,7 +40,13 @@ import * as ui_report from "./ui_report";
import * as util from "./util";
export function set_right_panel_title(sub) {
- $("#subscription_overlay .stream-info-title").html(render_selected_stream_title(sub));
+ let title_icon_color = "#333333";
+ if (settings_data.using_dark_theme()) {
+ title_icon_color = "#dddeee";
+ }
+ $("#subscription_overlay .stream-info-title").html(
+ render_selected_stream_title({sub, title_icon_color}),
+ );
}
export const show_subs_pane = {
diff --git a/static/templates/stream_settings/selected_stream_title.hbs b/static/templates/stream_settings/selected_stream_title.hbs
index c4d06c1c48..9a2ecfa824 100644
--- a/static/templates/stream_settings/selected_stream_title.hbs
+++ b/static/templates/stream_settings/selected_stream_title.hbs
@@ -1,5 +1,5 @@
{{> stream_privacy_icon
- invite_only=invite_only
- is_web_public=is_web_public
- color="#000000" }}
-{{name}}
+ invite_only=sub.invite_only
+ is_web_public=sub.is_web_public
+ color=title_icon_color }}
+{{sub.name}}