feat: Add rounded corners to account list item and add account button in SelectAccountScreen and UnlockScreen

This commit is contained in:
k1ngsterr1
2026-01-09 03:27:44 +05:00
parent 3cad4edd9b
commit ec70d1e216
9 changed files with 25 additions and 26 deletions

View File

@@ -337,12 +337,13 @@ fun ChatsListScreen(
ModalNavigationDrawer(
drawerState = drawerState,
drawerContent = {
ModalDrawerSheet(
// Custom drawer content - use PermanentDrawerSheet with no insets
PermanentDrawerSheet(
modifier = Modifier
.width(300.dp)
.fillMaxHeight(),
drawerContainerColor = drawerBackgroundColor,
windowInsets = WindowInsets(0, 0, 0, 0) // Remove all insets to cover entire screen
windowInsets = WindowInsets(0, 0, 0, 0)
) {
// Header with logo and theme toggle
Box(
@@ -389,17 +390,17 @@ fun ChatsListScreen(
Spacer(modifier = Modifier.height(16.dp))
// Public key - truncated and styled
// Public key - truncated and styled like nickname
val truncatedKey = if (accountPublicKey.length > 12) {
"${accountPublicKey.take(6)}...${accountPublicKey.takeLast(4)}"
} else accountPublicKey
Text(
text = truncatedKey,
fontSize = 13.sp,
fontWeight = FontWeight.Normal,
color = secondaryTextColor,
letterSpacing = 0.5.sp,
fontSize = 17.sp,
fontWeight = FontWeight.SemiBold,
color = textColor,
letterSpacing = 0.3.sp,
maxLines = 1
)
}
@@ -474,9 +475,8 @@ fun ChatsListScreen(
)
}
// Spacer to push content above navigation bar
Spacer(modifier = Modifier.navigationBarsPadding())
Spacer(modifier = Modifier.height(16.dp))
// Bottom spacer for navigation bar area (content padding only)
Spacer(modifier = Modifier.height(48.dp))
}
}
) {