stream_color: Increase contrast of stream icon color and background.

This commit is contained in:
Aman Agrawal
2023-11-02 15:46:04 +00:00
committed by Tim Abbott
parent bbd49d4634
commit d45a2bf35b
2 changed files with 9 additions and 5 deletions

View File

@@ -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 {