This commit is contained in:
Eric85710 2026-06-20 16:46:55 +08:00
parent c0cdc0a17f
commit f753659a6e

View file

@ -104,7 +104,7 @@ fun Loaded_Tg_Message(
title = { Text("Messages") }, title = { Text("Messages") },
colors = TopAppBarDefaults.topAppBarColors( colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color.Transparent, containerColor = Color.Transparent,
titleContentColor = Color.Black titleContentColor = MaterialTheme.colorScheme.onBackground
), ),
actions = { actions = {
// 2. 使用 Box 包裹按鈕與選單,確保選單彈出位置正確 // 2. 使用 Box 包裹按鈕與選單,確保選單彈出位置正確
@ -284,7 +284,7 @@ fun RoomItem(
}, },
style = MaterialTheme.typography.titleMedium, style = MaterialTheme.typography.titleMedium,
fontWeight = FontWeight.Bold, fontWeight = FontWeight.Bold,
color = Color(0xFF333333), color = MaterialTheme.colorScheme.onBackground,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
) )