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
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:
parent
7d86fd6a03
commit
5a4701992e
1 changed files with 5 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue