From 43b3847f843f39536968c4648898c88fedb7cab1 Mon Sep 17 00:00:00 2001 From: Joao Victor Sena Date: Fri, 25 Oct 2024 18:12:21 -0300 Subject: [PATCH] feat: add icon --- .../presentation/ui/screens/main/Destinations.kt | 2 +- .../presentation/ui/screens/main/MainActivity.kt | 6 ------ app/src/main/res/drawable-anydpi/ic_home.xml | 9 +++++++++ 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 app/src/main/res/drawable-anydpi/ic_home.xml diff --git a/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/Destinations.kt b/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/Destinations.kt index 4e2ab62..93fd4f9 100644 --- a/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/Destinations.kt +++ b/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/Destinations.kt @@ -10,5 +10,5 @@ enum class Destinations( val label: String, @DrawableRes val icon: Int ) { - HOME(route = "Home", label = "Home", R.drawable.ic_add) + HOME(route = "Home", label = "Home", R.drawable.ic_home) } \ No newline at end of file diff --git a/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/MainActivity.kt b/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/MainActivity.kt index 3a16bc8..545216a 100644 --- a/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/MainActivity.kt +++ b/app/src/main/java/com/github/jvsena42/floresta/presentation/ui/screens/main/MainActivity.kt @@ -4,15 +4,10 @@ import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge -import androidx.compose.foundation.background import androidx.compose.foundation.layout.fillMaxSize -import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.shape.CircleShape -import androidx.compose.foundation.shape.CornerSize import androidx.compose.material3.Icon import androidx.compose.material3.NavigationBar -import androidx.compose.material3.NavigationBarDefaults import androidx.compose.material3.NavigationBarItem import androidx.compose.material3.Scaffold import androidx.compose.runtime.getValue @@ -21,7 +16,6 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.painterResource -import androidx.compose.ui.unit.dp import androidx.navigation.NavGraph.Companion.findStartDestination import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable diff --git a/app/src/main/res/drawable-anydpi/ic_home.xml b/app/src/main/res/drawable-anydpi/ic_home.xml new file mode 100644 index 0000000..f96f027 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_home.xml @@ -0,0 +1,9 @@ + + +