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 | 57 | call_missed_mine = You called, no answer |
| 58 | 58 | call_missed = Missed call from {name} |
| 59 | 59 | call_ended = Call ended · {duration} |
| 60 | -in_call = In call | |
| 61 | -start_call = Start call | |
| 60 | +in_voice = In voice | |
| 61 | +join_voice = Join voice |
crates/client/lang/tr/chat.txtmodified+2 -2
| @@ -57,5 +57,5 @@ call_declined = {name} aramayı reddetti | ||
| 57 | 57 | call_missed_mine = Aradın, cevap yok |
| 58 | 58 | call_missed = Cevapsız arama: {name} |
| 59 | 59 | call_ended = Arama bitti · {duration} |
| 60 | -in_call = Aramada | |
| 61 | -start_call = Arama başlat | |
| 60 | +in_voice = Seste | |
| 61 | +join_voice = Sese katıl |
crates/client/src/gui/chat.rsmodified+5 -3
| @@ -3239,7 +3239,9 @@ fn members_column( | ||
| 3239 | 3239 | .items_center() |
| 3240 | 3240 | .gap(px(space::SM)) |
| 3241 | 3241 | .rounded(px(radius::MD)) |
| 3242 | - .text_color(palette.muted) | |
| 3242 | + .border_1() | |
| 3243 | + .border_color(palette.accent) | |
| 3244 | + .text_color(palette.accent) | |
| 3243 | 3245 | .child( |
| 3244 | 3246 | div() |
| 3245 | 3247 | .w(px(if empty { size::ICON } else { size::ICON_SM })) |
| @@ -3248,7 +3250,7 @@ fn members_column( | ||
| 3248 | 3250 | .child(super::parts::small_icon(IconName::Headphones)), |
| 3249 | 3251 | ) |
| 3250 | 3252 | .child(if empty { |
| 3251 | - w().chat.start_call | |
| 3253 | + w().chat.join_voice | |
| 3252 | 3254 | } else { |
| 3253 | 3255 | w().chat.join |
| 3254 | 3256 | }) |
| @@ -3256,7 +3258,7 @@ fn members_column( | ||
| 3256 | 3258 | let call = if in_call.is_empty() { |
| 3257 | 3259 | join.map(|join| div().child(join)) |
| 3258 | 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 | 3263 | let online = members |
| 3262 | 3264 | .iter() |