feat: Add screen orientation setting and improve padding for navigation bars in ChatsList and Onboarding screens
This commit is contained in:
@@ -133,6 +133,7 @@ fun ConfirmSeedPhraseScreen(
|
||||
.fillMaxSize()
|
||||
.background(backgroundColor)
|
||||
.statusBarsPadding()
|
||||
.navigationBarsPadding()
|
||||
) {
|
||||
Column(modifier = Modifier.fillMaxSize()) {
|
||||
// Top bar
|
||||
|
||||
@@ -53,6 +53,7 @@ fun ImportSeedPhraseScreen(
|
||||
.fillMaxSize()
|
||||
.background(backgroundColor)
|
||||
.statusBarsPadding()
|
||||
.navigationBarsPadding()
|
||||
) {
|
||||
Column(modifier = Modifier.fillMaxSize()) {
|
||||
// Top bar
|
||||
|
||||
@@ -56,6 +56,7 @@ fun SeedPhraseScreen(
|
||||
.fillMaxSize()
|
||||
.background(backgroundColor)
|
||||
.statusBarsPadding()
|
||||
.navigationBarsPadding()
|
||||
) {
|
||||
Column(modifier = Modifier.fillMaxSize()) {
|
||||
// Simple top bar
|
||||
|
||||
@@ -97,7 +97,7 @@ fun SetPasswordScreen(
|
||||
val isPasswordWeak = password.isNotEmpty() && password.length < 6
|
||||
val canContinue = passwordsMatch && !isCreating
|
||||
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor)) {
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor).navigationBarsPadding()) {
|
||||
Column(modifier = Modifier.fillMaxSize().statusBarsPadding()) {
|
||||
// Top Bar
|
||||
Row(
|
||||
|
||||
@@ -167,7 +167,7 @@ fun UnlockScreen(
|
||||
}
|
||||
}
|
||||
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor)) {
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor).navigationBarsPadding()) {
|
||||
Column(
|
||||
modifier =
|
||||
Modifier.fillMaxSize()
|
||||
|
||||
@@ -76,7 +76,7 @@ fun WelcomeScreen(
|
||||
var visible by remember { mutableStateOf(false) }
|
||||
LaunchedEffect(Unit) { visible = true }
|
||||
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor)) {
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor).navigationBarsPadding()) {
|
||||
// Back button when coming from UnlockScreen
|
||||
if (hasExistingAccount) {
|
||||
IconButton(onClick = onBack, modifier = Modifier.statusBarsPadding().padding(4.dp)) {
|
||||
|
||||
Reference in New Issue
Block a user