ui: mute the empty-state shield and set its heading to the plan's 18sp
All checks were successful
android-ci / android (pull_request) Successful in 14m56s

The plan asks for a *muted* mint/grey icon inside the subtle surface circle and
an 18px/600 heading. The first pass drew the shield in full accent at 16sp
SemiBold, which made the empty state read as a warning and competed with the
primary CTA under it. The accent now stays on the button only.
This commit is contained in:
apk-dev 2026-10-29 00:22:16 -04:00
commit 5a4701992e
No known key found for this signature in database

View file

@ -40,6 +40,7 @@ import androidx.compose.ui.platform.LocalClipboard
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.siriusdevops.onionwire.R
import com.siriusdevops.onionwire.ui.components.Identicon
import com.siriusdevops.onionwire.ui.components.Label
@ -240,17 +241,19 @@ private fun EmptyRoster(
.background(OwColors.Surface),
contentAlignment = Alignment.Center,
) {
// Muted on purpose: the empty state is an invitation, not an alarm.
// The accent stays reserved for the one primary action below it.
OwIcon(
iconRes = R.drawable.ic_ow_shield,
contentDescription = null,
tint = OwColors.Accent,
tint = OwColors.TextSecondary,
size = 30.dp,
)
}
Spacer(Modifier.height(16.dp))
Text(
"No contacts yet",
style = MaterialTheme.typography.titleMedium,
style = MaterialTheme.typography.titleMedium.copy(fontSize = 18.sp, lineHeight = 24.sp),
color = OwColors.TextPrimary,
)
Spacer(Modifier.height(8.dp))