Community voice join reads 'Join voice' / 'In voice' (it rings nobody, unlike a direct call) and is an accent-outlined control instead of muted text
Browse files at this commit1c5c1a94295c5085563d64c84dfd86fd65ac95f9Parent: a72cea7- style
- community voice join reads 'Join voice' / 'In voice' (it rings nobody, unlike a direct call) and is an accent-outlined control instead of muted text
3 changed files +9 -7
- crates/client/lang/en/chat.txt +2 -2
- crates/client/lang/tr/chat.txt +2 -2
- crates/client/src/gui/chat.rs +5 -3
crates/client/lang/en/chat.txtmodified+2 -2
| @@ -57,5 +57,5 @@ call_declined = {name} declined the call | |||
| 57 | call_missed_mine = You called, no answer | 57 | call_missed_mine = You called, no answer |
| 58 | call_missed = Missed call from {name} | 58 | call_missed = Missed call from {name} |
| 59 | call_ended = Call ended · {duration} | 59 | call_ended = Call ended · {duration} |
| 60 | -in_call = In call | 60 | +in_voice = In voice |
| 61 | -start_call = Start call | 61 | +join_voice = Join voice |
crates/client/lang/tr/chat.txtmodified+2 -2
| @@ -57,5 +57,5 @@ call_declined = {name} aramayı reddetti | |||
| 57 | call_missed_mine = Aradın, cevap yok | 57 | call_missed_mine = Aradın, cevap yok |
| 58 | call_missed = Cevapsız arama: {name} | 58 | call_missed = Cevapsız arama: {name} |
| 59 | call_ended = Arama bitti · {duration} | 59 | call_ended = Arama bitti · {duration} |
| 60 | -in_call = Aramada | 60 | +in_voice = Seste |
| 61 | -start_call = Arama başlat | 61 | +join_voice = Sese katıl |
crates/client/src/gui/chat.rsmodified+5 -3
| @@ -3239,7 +3239,9 @@ fn members_column( | |||
| 3239 | .items_center() | 3239 | .items_center() |
| 3240 | .gap(px(space::SM)) | 3240 | .gap(px(space::SM)) |
| 3241 | .rounded(px(radius::MD)) | 3241 | .rounded(px(radius::MD)) |
| 3242 | - .text_color(palette.muted) | 3242 | + .border_1() |
| 3243 | + .border_color(palette.accent) | ||
| 3244 | + .text_color(palette.accent) | ||
| 3243 | .child( | 3245 | .child( |
| 3244 | div() | 3246 | div() |
| 3245 | .w(px(if empty { size::ICON } else { size::ICON_SM })) | 3247 | .w(px(if empty { size::ICON } else { size::ICON_SM })) |
| @@ -3248,7 +3250,7 @@ fn members_column( | |||
| 3248 | .child(super::parts::small_icon(IconName::Headphones)), | 3250 | .child(super::parts::small_icon(IconName::Headphones)), |
| 3249 | ) | 3251 | ) |
| 3250 | .child(if empty { | 3252 | .child(if empty { |
| 3251 | - w().chat.start_call | 3253 | + w().chat.join_voice |
| 3252 | } else { | 3254 | } else { |
| 3253 | w().chat.join | 3255 | w().chat.join |
| 3254 | }) | 3256 | }) |
| @@ -3256,7 +3258,7 @@ fn members_column( | |||
| 3256 | let call = if in_call.is_empty() { | 3258 | let call = if in_call.is_empty() { |
| 3257 | join.map(|join| div().child(join)) | 3259 | join.map(|join| div().child(join)) |
| 3258 | } else { | 3260 | } else { |
| 3259 | - section(w().chat.in_call, in_call, usize::MAX, join) | 3261 | + section(w().chat.in_voice, in_call, usize::MAX, join) |
| 3260 | }; | 3262 | }; |
| 3261 | let online = members | 3263 | let online = members |
| 3262 | .iter() | 3264 | .iter() |