mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 14:04:23 -05:00
Draw the outline of enabled secondary buttons under the agent's latest reply (#3697)
* Draw the outline of enabled secondary buttons under the agent's latest reply * Count only the index fetch's own connections in DesktopLanguageIndexSourceTest
This commit is contained in:
1 parent
bc8a970520
commit
a9f2017aa3
2 files changed
+17
-5
No files matched your search
@@ -308,7 +308,8 @@ internal fun SecondaryButton(text: String, enabled: Boolean = true, compact: Boo
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = modifier.paneItem("btn:$text").downToFirstTile().heightIn(min = if (pill) 40.dp else if (compact) 44.dp else 48.dp).graphicsLayer { scaleX = scale; scaleY = scale }.clip(shape).background(fill).glideBorder(hot, shape, pal.signal, if (pill) Color.White.copy(alpha = 0.14f) else pal.line2)
|
||||
.alpha(if (enabled) 1f else 0.5f)
|
||||
// The label always gets a layer of its own: sharing one with the fill and outline, they did not draw under the agent's latest reply.
|
||||
.graphicsLayer { alpha = if (enabled) 1f else 0.5f }
|
||||
.hoverable(src).clickable(role = androidx.compose.ui.semantics.Role.Button, interactionSource = src, indication = LocalIndication.current, enabled = enabled, onClick = onClick)
|
||||
.controllerConfirm(enabled = enabled, onClick = onClick)
|
||||
.padding(horizontal = if (pill) 16.dp else if (compact) 10.dp else 16.dp, vertical = if (pill) 8.dp else if (compact) 7.dp else 11.dp),
|
||||
|
||||
Reference in new issue
Block a user