Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

fix(chat): improve persona visibility and feedback on home screen

Durganshu80a6b0efe962
diff --git a/app/src/main/java/com/gotcha/ui/ChatScreen.kt b/app/src/main/java/com/gotcha/ui/ChatScreen.kt
index 43616ff..9d549e8 100644
--- a/app/src/main/java/com/gotcha/ui/ChatScreen.kt
+++ b/app/src/main/java/com/gotcha/ui/ChatScreen.kt
@@ -210,9 +210,10 @@ fun ChatScreen(
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
- // The persona is invisible once the picker is gone, so
- // the open chat says which role it is being answered in.
- val persona = if (isHome) null else personaById(state.activePersonaId)
+ // Shown both on the home screen, to confirm a persona
+ // tap actually registered, and once the picker is gone
+ // so the open chat still says which role it's in.
+ val persona = personaById(state.activePersonaId)
if (persona != null) {
Text(
persona.label,
diff --git a/app/src/main/java/com/gotcha/ui/Persona.kt b/app/src/main/java/com/gotcha/ui/Persona.kt
index f02a89e..c16ba9b 100644
--- a/app/src/main/java/com/gotcha/ui/Persona.kt
+++ b/app/src/main/java/com/gotcha/ui/Persona.kt
@@ -198,9 +198,9 @@ private fun PersonaChip(
) {
val scheme = MaterialTheme.colorScheme
val colorSpec = motionSpec<Color>(180)
- // Same veil as the agent selector: the light skins' containers sit a few
- // points off their near-white ground, and a fill that pale reads as none.
- val filled = scheme.primary.copy(alpha = 0.16f).compositeOver(scheme.primaryContainer)
+ // Stronger than the agent selector's veil: unlike that badge, this is the
+ // only home-screen feedback a tap gets, so a fill that pale reads as none.
+ val filled = scheme.primary.copy(alpha = 0.28f).compositeOver(scheme.primaryContainer)
val container by animateColorAsState(
targetValue = if (selected) filled else Color.Transparent,
animationSpec = colorSpec,