mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
stream_color: Dim recipient bar background color.
This commit is contained in:
@@ -47,8 +47,8 @@ export function get_recipient_bar_color(color) {
|
||||
// Mixes 50% of color to 40% of white (light theme) / black (dark theme).
|
||||
const using_dark_theme = settings_data.using_dark_theme();
|
||||
color = get_stream_privacy_icon_color(color);
|
||||
return colord(using_dark_theme ? "#000000" : "#ffffff")
|
||||
.mix(color, using_dark_theme ? 0.43 : 0.35)
|
||||
return colord(using_dark_theme ? "#000000" : "#f9f9f9")
|
||||
.mix(color, using_dark_theme ? 0.38 : 0.22)
|
||||
.toHex();
|
||||
}
|
||||
|
||||
|
@@ -538,7 +538,7 @@ test("format_drafts", ({override_rewire, mock_template}) => {
|
||||
is_stream: true,
|
||||
stream_name: "stream",
|
||||
stream_id: 30,
|
||||
recipient_bar_color: "#e6e6e6",
|
||||
recipient_bar_color: "#ebebeb",
|
||||
stream_privacy_icon_color: "#b9b9b9",
|
||||
topic: "topic",
|
||||
raw_content: "Test stream message",
|
||||
@@ -571,7 +571,7 @@ test("format_drafts", ({override_rewire, mock_template}) => {
|
||||
draft_id: "id3",
|
||||
is_stream: true,
|
||||
stream_name: "stream 2",
|
||||
recipient_bar_color: "#e6e6e6",
|
||||
recipient_bar_color: "#ebebeb",
|
||||
stream_privacy_icon_color: "#b9b9b9",
|
||||
topic: "topic",
|
||||
raw_content: "Test stream message 2",
|
||||
@@ -709,7 +709,7 @@ test("filter_drafts", ({override_rewire, mock_template}) => {
|
||||
is_stream: true,
|
||||
stream_name: "stream",
|
||||
stream_id: 30,
|
||||
recipient_bar_color: "#e6e6e6",
|
||||
recipient_bar_color: "#ebebeb",
|
||||
stream_privacy_icon_color: "#b9b9b9",
|
||||
topic: "topic",
|
||||
raw_content: "Test stream message",
|
||||
@@ -722,7 +722,7 @@ test("filter_drafts", ({override_rewire, mock_template}) => {
|
||||
is_stream: true,
|
||||
stream_name: "stream 2",
|
||||
stream_id: undefined,
|
||||
recipient_bar_color: "#e6e6e6",
|
||||
recipient_bar_color: "#ebebeb",
|
||||
stream_privacy_icon_color: "#b9b9b9",
|
||||
topic: "topic",
|
||||
raw_content: "Test stream message 2",
|
||||
|
Reference in New Issue
Block a user