Clarify call banner and status icon presentation contracts
This commit is contained in:
1 parent
5c66704e5b
commit
284ff93485
3 files changed
+5
-3
No files matched your search
+3
-2
@@ -31,8 +31,9 @@ private fun fmtDuration(sec: Int): String {
|
||||
return "%02d:%02d".format(m, s)
|
||||
}
|
||||
|
||||
/* Постоянная полоса активного звонка: показывается поверх интерфейса, когда
|
||||
* звонок свёрнут. Клик по полосе открывает CallScreen, красная кнопка — завершить. */
|
||||
/** Свёрнутый исходящий/активный звонок: OUTGOING/RINGING/WAIT_DECISION/ACTIVE, duration берётся из controller.
|
||||
* Caller размещает полосу над интерфейсом; callbacks открывают CallScreen/завершают звонок. Incoming/ENDED скрыты.
|
||||
*/
|
||||
@Composable
|
||||
fun ActiveCallBanner(
|
||||
viewModel: ChatViewModel,
|
||||
|
||||
@@ -13,6 +13,7 @@ import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
/** Индикатор 12dp из готового online snapshot; сетевую проверку не запускает, статус также доступен через semantics. */
|
||||
@Composable
|
||||
fun PeerStatusDot(online: Boolean, modifier: Modifier = Modifier) {
|
||||
val description = stringResource(if (online) R.string.online else R.string.not_online)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
/* Общая портативная рация для кнопки и списка участников; размер задаёт вызывающий. */
|
||||
/** Canvas-иконка на сетке 24×24: minDimension задаёт масштаб; label — accessibility, tint — цвет всех штрихов. */
|
||||
@Composable
|
||||
fun PortableRadioIcon(label: String, modifier: Modifier = Modifier.size(24.dp), tint: Color = LocalContentColor.current) {
|
||||
val color = tint
|
||||
|
||||
Reference in new issue
Block a user