群聊信息UI调整
This commit is contained in:
@@ -326,6 +326,48 @@ fun GroupChatInfoScreen(groupId: String) {
|
|||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Spacer(modifier = Modifier.height(1.dp))
|
||||||
|
//仅自己可见
|
||||||
|
Row(
|
||||||
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.clip(RoundedCornerShape(8.dp))
|
||||||
|
.padding(16.dp)
|
||||||
|
.noRippleClickable {
|
||||||
|
// TODO: 实现仅自己可见功能
|
||||||
|
},
|
||||||
|
verticalAlignment = Alignment.CenterVertically
|
||||||
|
) {
|
||||||
|
Image(
|
||||||
|
painter = painterResource(R.mipmap.rider_pro_change_password),
|
||||||
|
modifier = Modifier.size(24.dp),
|
||||||
|
contentDescription = null,
|
||||||
|
colorFilter = ColorFilter.tint(
|
||||||
|
AppColors.text)
|
||||||
|
)
|
||||||
|
Spacer(modifier = Modifier.width(12.dp))
|
||||||
|
Text(
|
||||||
|
text = "仅自己可见",
|
||||||
|
style = androidx.compose.ui.text.TextStyle(
|
||||||
|
color = AppColors.text,
|
||||||
|
fontSize = 16.sp
|
||||||
|
),
|
||||||
|
modifier = Modifier.weight(1f)
|
||||||
|
)
|
||||||
|
androidx.compose.material.Switch(
|
||||||
|
checked = false, // TODO: 绑定实际状态
|
||||||
|
onCheckedChange = {
|
||||||
|
// TODO: 实现开关切换逻辑
|
||||||
|
},
|
||||||
|
colors = androidx.compose.material.SwitchDefaults.colors(
|
||||||
|
checkedThumbColor = AppColors.main,
|
||||||
|
uncheckedThumbColor = AppColors.secondaryText,
|
||||||
|
checkedTrackColor = AppColors.main.copy(alpha = 0.5f),
|
||||||
|
uncheckedTrackColor = AppColors.decentBackground
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user