Skip to content

Commit

Permalink
🎨 Fixed UI elements
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovngl committed Feb 3, 2024
1 parent 213b4c4 commit df7c563
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.lorenzovainigli.foodexpirationdates.view.composable

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Info
import androidx.compose.material.icons.filled.List
import androidx.compose.material.icons.automirrored.filled.List
import androidx.compose.material.icons.filled.Settings
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material.icons.outlined.List
import androidx.compose.material.icons.automirrored.outlined.List
import androidx.compose.material.icons.outlined.Settings
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
Expand Down Expand Up @@ -38,8 +38,8 @@ fun MyBottomAppBar(
NavigationItem(
label = stringResource(id = R.string.list),
route = Screen.MainScreen.route,
selectedIcon = Icons.Filled.List,
unselectedIcon = Icons.Outlined.List
selectedIcon = Icons.AutoMirrored.Filled.List,
unselectedIcon = Icons.AutoMirrored.Outlined.List
),
NavigationItem(
label = stringResource(id = R.string.settings),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
Expand Down Expand Up @@ -119,7 +119,7 @@ fun MyScaffold(
onClick = { navController.popBackStack() }
) {
Icon(
imageVector = Icons.Filled.ArrowBack,
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
contentDescription = stringResource(id = R.string.back),
tint = MaterialTheme.colorScheme.primary
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ fun SettingsScreen(
)
}
}
Spacer(
modifier = Modifier
.fillMaxHeight()
.weight(0.1f)
)
}
}
}
Expand Down

0 comments on commit df7c563

Please sign in to comment.