Skip to content

Commit

Permalink
feat: add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jvsena42 committed Oct 25, 2024
1 parent a4a0f98 commit 43b3847
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/drawable-anydpi/ic_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="25dp"
android:viewportWidth="24"
android:viewportHeight="25">
<path
android:pathData="M6,19.5H9V13.5H15V19.5H18V10.5L12,6L6,10.5V19.5ZM4,21.5V9.5L12,3.5L20,9.5V21.5H13V15.5H11V21.5H4Z"
android:fillColor="#FAFDFE"/>
</vector>

0 comments on commit 43b3847

Please sign in to comment.