Add dedicated indicator for showing a muted call participant (#4076)
This PR improves the muted indicators to make it clearer when a call participant is muted. Previously we used a red border color to denote when a participant was muted. Now we render an indicator with an icon to more clearly indicate the participant's muted status: <img width="303" alt="Screenshot 2024-01-16 at 4 05 15 PM" src="https://github.com/zed-industries/zed/assets/1486634/d30fcd84-48e7-4959-b3c4-1054162c6bd6"> Hovering over the indicator will display a tooltip for further explanation: <img width="456" alt="Screenshot 2024-01-16 at 4 05 25 PM" src="https://github.com/zed-industries/zed/assets/1486634/6345846f-196c-47d9-8d65-c8d86e63f823"> This change also paves the way for denoting the deafened status for call participants. Release Notes: - Improved the mute indicator for call participants.
This commit is contained in:
parent
9903b7ae6e
commit
2e03c848e3
6 changed files with 92 additions and 10 deletions
|
@ -5,6 +5,7 @@ use crate::prelude::*;
|
|||
|
||||
#[derive(Default, PartialEq, Copy, Clone)]
|
||||
pub enum IconSize {
|
||||
Indicator,
|
||||
XSmall,
|
||||
Small,
|
||||
#[default]
|
||||
|
@ -14,6 +15,7 @@ pub enum IconSize {
|
|||
impl IconSize {
|
||||
pub fn rems(self) -> Rems {
|
||||
match self {
|
||||
IconSize::Indicator => rems(10. / 16.),
|
||||
IconSize::XSmall => rems(12. / 16.),
|
||||
IconSize::Small => rems(14. / 16.),
|
||||
IconSize::Medium => rems(16. / 16.),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue