Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_color: Increase contrast of stream icon color and background.
Aman Agrawald45a2bf35b88
diff --git a/web/src/stream_color.ts b/web/src/stream_color.tsindex 4de8981c53e..b781e45c838 100644--- a/web/src/stream_color.ts+++ b/web/src/stream_color.ts@@ -41,7 +41,11 @@ export function get_corrected_color(hex_color: string): Colord {}export function get_stream_privacy_icon_color(hex_color: string): string {- return get_corrected_color(hex_color).toHex();+ const corrected_color = get_corrected_color(hex_color);+ if (settings_data.using_dark_theme()) {+ return corrected_color.toHex();+ }+ return corrected_color.darken(0.12).toHex();}export function get_recipient_bar_color(color: string): string {diff --git a/web/tests/drafts.test.js b/web/tests/drafts.test.jsindex cab4844719a..9d830d923dd 100644--- a/web/tests/drafts.test.js+++ b/web/tests/drafts.test.js@@ -523,7 +523,7 @@ test("format_drafts", ({override_rewire, mock_template}) => {stream_name: "stream",stream_id: 30,recipient_bar_color: "#ebebeb",- stream_privacy_icon_color: "#b9b9b9",+ stream_privacy_icon_color: "#9a9a9a",topic: "topic",raw_content: "Test stream message",time_stamp: "7:55 AM",@@ -557,7 +557,7 @@ test("format_drafts", ({override_rewire, mock_template}) => {stream_name: "stream 2",stream_id: 40,recipient_bar_color: "#ebebeb",- stream_privacy_icon_color: "#b9b9b9",+ stream_privacy_icon_color: "#9a9a9a",topic: "topic",raw_content: "Test stream message 2",time_stamp: "Jan 21",@@ -704,7 +704,7 @@ test("filter_drafts", ({override_rewire, mock_template}) => {stream_name: "stream",stream_id: 30,recipient_bar_color: "#ebebeb",- stream_privacy_icon_color: "#b9b9b9",+ stream_privacy_icon_color: "#9a9a9a",topic: "topic",raw_content: "Test stream message",time_stamp: "7:55 AM",@@ -717,7 +717,7 @@ test("filter_drafts", ({override_rewire, mock_template}) => {stream_name: "stream 2",stream_id: 40,recipient_bar_color: "#ebebeb",- stream_privacy_icon_color: "#b9b9b9",+ stream_privacy_icon_color: "#9a9a9a",topic: "topic",raw_content: "Test stream message 2",time_stamp: "Jan 21",