惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
U
Unit 42
人人都是产品经理
人人都是产品经理
罗磊的独立博客
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
GbyAI
GbyAI
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
B
Blog RSS Feed
WordPress大学
WordPress大学
腾讯CDC
H
Help Net Security
博客园 - Franky
博客园 - 【当耐特】
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
B
Blog
Vercel News
Vercel News
博客园 - 司徒正美

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor(android): share plain icon button component · op...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -4,6 +4,7 @@ import ai.openclaw.app.MainViewModel

44

import ai.openclaw.app.R

55

import ai.openclaw.app.VoiceCaptureMode

66

import ai.openclaw.app.ui.design.ClawPanel

7+

import ai.openclaw.app.ui.design.ClawPlainIconButton

78

import ai.openclaw.app.ui.design.ClawPrimaryButton

89

import ai.openclaw.app.ui.design.ClawSecondaryButton

910

import ai.openclaw.app.ui.design.ClawStatus

@@ -269,12 +270,12 @@ private fun DictationScreen(

269270

verticalArrangement = Arrangement.spacedBy(10.dp),

270271

) {

271272

Row(modifier = Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(9.dp)) {

272-

VoicePlainIconButton(icon = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back to voice", onClick = onCancel)

273+

ClawPlainIconButton(icon = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back to voice", onClick = onCancel)

273274

Column(modifier = Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) {

274275

Text(text = "Dictation", style = ClawTheme.type.title.copy(fontSize = 16.sp, lineHeight = 20.sp), color = ClawTheme.colors.text)

275276

Text(text = "Transcribe then send", style = ClawTheme.type.body, color = ClawTheme.colors.textMuted)

276277

}

277-

VoicePlainIconButton(icon = Icons.Default.Settings, contentDescription = "Dictation settings", onClick = onOpenVoiceSettings)

278+

ClawPlainIconButton(icon = Icons.Default.Settings, contentDescription = "Dictation settings", onClick = onOpenVoiceSettings)

278279

}

279280280281

Surface(

@@ -406,7 +407,7 @@ private fun TalkSessionScreen(

406407

verticalArrangement = Arrangement.spacedBy(10.dp),

407408

) {

408409

Row(modifier = Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) {

409-

VoicePlainIconButton(icon = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back to voice", onClick = onEndTalk)

410+

ClawPlainIconButton(icon = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back to voice", onClick = onEndTalk)

410411

Column(modifier = Modifier.weight(1f), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(3.dp)) {

411412

Text(text = "Realtime Talk", style = ClawTheme.type.title.copy(fontSize = 16.sp, lineHeight = 20.sp), color = ClawTheme.colors.text)

412413

Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(5.dp)) {

@@ -425,7 +426,7 @@ private fun TalkSessionScreen(

425426

)

426427

}

427428

}

428-

VoicePlainIconButton(icon = Icons.Default.Info, contentDescription = "Talk settings", onClick = onOpenVoiceSettings)

429+

ClawPlainIconButton(icon = Icons.Default.Info, contentDescription = "Talk settings", onClick = onOpenVoiceSettings)

429430

}

430431431432

Surface(

@@ -561,7 +562,7 @@ private fun VoiceHeader(

561562

color = ClawTheme.colors.text,

562563

modifier = Modifier.weight(1f),

563564

)

564-

VoicePlainIconButton(icon = Icons.Default.Search, contentDescription = "Search voice", onClick = onOpenCommand)

565+

ClawPlainIconButton(icon = Icons.Default.Search, contentDescription = "Search voice", onClick = onOpenCommand)

565566

}

566567

Row(

567568

modifier = Modifier.fillMaxWidth(),

@@ -578,7 +579,7 @@ private fun VoiceHeader(

578579

overflow = TextOverflow.Ellipsis,

579580

)

580581

}

581-

VoicePlainIconButton(

582+

ClawPlainIconButton(

582583

icon = if (speakerEnabled) Icons.AutoMirrored.Filled.VolumeUp else Icons.AutoMirrored.Filled.VolumeOff,

583584

contentDescription = if (speakerEnabled) "Mute speaker" else "Unmute speaker",

584585

onClick = onToggleSpeaker,

@@ -587,19 +588,6 @@ private fun VoiceHeader(

587588

}

588589

}

589590590-

@Composable

591-

private fun VoicePlainIconButton(

592-

icon: androidx.compose.ui.graphics.vector.ImageVector,

593-

contentDescription: String,

594-

onClick: () -> Unit,

595-

) {

596-

Surface(onClick = onClick, modifier = Modifier.size(ClawTheme.spacing.touchTarget), shape = CircleShape, color = Color.Transparent, contentColor = ClawTheme.colors.text) {

597-

Box(contentAlignment = Alignment.Center) {

598-

Icon(imageVector = icon, contentDescription = contentDescription, modifier = Modifier.size(18.dp))

599-

}

600-

}

601-

}

602-603591

@Composable

604592

private fun VoiceHero(

605593

gatewayStatus: String,