From 85d555b44e63824e4e8e3f2bd39ab55af0a5c557 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Wed, 23 Sep 2026 19:00:52 -0400 Subject: [PATCH] Front end: credits and the primary button show a focus outline With a controller, credits only showed the ripple's faint box on the dark rail, and the primary button (Play) only grew slightly with a shine that barely shows on its light fill. Both now get the 2 dp signal-blue outline the other controls use; credits' text turns blue as well. --- .../com/droiddeck/launcher/ui/FrontEndScreen.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt index e4acabf7fb..052630cc78 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt @@ -337,9 +337,16 @@ private fun Rail( } } + // Outlined when a controller is on it, like every other control; the ripple alone was + // a faint box on the dark rail. + val creditsSrc = remember { MutableInteractionSource() } + val creditsHot = rememberHot(creditsSrc) Text( - "credits", fontSize = 11.sp, color = colors.onSurfaceVariant, - modifier = Modifier.clip(Shape10).clickable(onClick = a.onCredits).padding(horizontal = 10.dp, vertical = 8.dp), + "credits", fontSize = 11.sp, color = if (creditsHot) LocalPalette.current.signal else colors.onSurfaceVariant, + modifier = Modifier.clip(Shape10) + .border(2.dp, if (creditsHot) LocalPalette.current.signal else Color.Transparent, Shape10) + .hoverable(creditsSrc).clickable(interactionSource = creditsSrc, indication = null, onClick = a.onCredits) + .padding(horizontal = 10.dp, vertical = 8.dp), ) } } @@ -789,6 +796,9 @@ private fun PrimaryButton(text: String, enabled: Boolean = true, onClick: () -> .clip(Shape12) .background(if (enabled) Brush.linearGradient(listOf(colors.primary, pal.primary2)) else Brush.linearGradient(listOf(colors.surfaceVariant, colors.surfaceVariant))) .shine(hot, 0.45f) + // The grow and shine alone barely show on the light fill: outline it when a + // controller is on it, as the other controls are. + .border(2.dp, if (hot) pal.signal else Color.Transparent, Shape12) .hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, enabled = enabled, onClick = onClick) .padding(horizontal = 18.dp, vertical = 11.dp), ) {