Use symbolic chat app bar actions

This commit is contained in:
OpenClaw committed 2026-03-07 21:20:55 +08:00
1 parent f0379b9b4e
commit 15e57ad1f9
2 files changed
+7 -6

No files matched your search

@@ -149,15 +149,15 @@ private fun OpenClawRoot(appState: OpenClawAppState) {
)
},
navigationIcon = {
Button(onClick = appState::closeChat) {
Text("返回")
TextButton(onClick = appState::closeChat) {
Text("←")
}
},
actions = {
Button(onClick = { pickAttachment() }) {
Text("附件")
TextButton(onClick = { pickAttachment() }) {
Text("+")
}
Button(onClick = {
TextButton(onClick = {
activeSession?.id?.let { sessionId ->
coroutineScope.launch {
appState.clearSyncError()
@@ -165,7 +165,7 @@ private fun OpenClawRoot(appState: OpenClawAppState) {
}
}
}) {
Text(if (appState.repository.streamStatusFor(route.sessionId) == "failed") "重连" else "刷新")
Text(if (appState.repository.streamStatusFor(route.sessionId) == "failed") "⟳" else "↻")
}
},
)
+1
View File
@@ -451,3 +451,4 @@ Android/iOS App
- 2026-03-07:按最新交互反馈继续收聊天页壳层:非会话页移除 TopAppBar,只在会话详情保留顶部导航;会话页顶栏返回/附件/刷新改成更明确的按钮,标题字号再收小;输入栏去掉“继续当前会话”说明并压缩整体高度,减少底部控件占屏。
- 2026-03-07:信息架构继续做减法:底部导航先从三栏收成两栏(会话 / 设置),把原状态页的核心诊断信息并进设置页的“诊断信息”分组,避免低频诊断页长期占一个一级入口。
- 2026-03-07:继续给聊天页降噪:正常在线时顶部状态条不再常驻,只在同步 / 发送 / 恢复 / 断流等需要用户感知时才显示;状态文案改成更短的移动端提示,同时去掉用户消息“已发送”和附件“已完成”这类长期占位但信息价值不高的状态露出。
- 2026-03-07:会话页顶栏操作再收成图标化按钮:返回 / 附件 / 刷新不再显示整词文本,而是先用轻量符号按钮(← / + / ↻/⟳)表达,减少顶栏横向拥挤;后续如果需要,再统一切成正式 Material Icons 资源。