Skip to content

Commit

Permalink
Use regular icons instead of extended to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok authored Nov 14, 2023
1 parent 6df5a9c commit 5cc685c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion components/resources/demo/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ kotlin {
dependencies {
implementation(compose.runtime)
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(project(":resources:library"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package org.jetbrains.compose.resources.demo.shared
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Abc
import androidx.compose.material.icons.filled.Attachment
import androidx.compose.material.icons.filled.Image
import androidx.compose.material.icons.filled.TextFields
import androidx.compose.material.icons.filled.Edit
import androidx.compose.material.icons.filled.Face
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material.icons.filled.Info
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
Expand Down Expand Up @@ -38,25 +38,25 @@ internal fun UseResources() {
NavigationBarItem(
selected = screen == Screens.Images,
onClick = { screen = Screens.Images },
icon = { Icon(imageVector = Icons.Default.Image, contentDescription = null) },
icon = { Icon(imageVector = Icons.Default.Face, contentDescription = null) },
label = { Text("Images") }
)
NavigationBarItem(
selected = screen == Screens.Strings,
onClick = { screen = Screens.Strings },
icon = { Icon(imageVector = Icons.Default.Abc, contentDescription = null) },
icon = { Icon(imageVector = Icons.Default.Edit, contentDescription = null) },
label = { Text("Strings") }
)
NavigationBarItem(
selected = screen == Screens.Font,
onClick = { screen = Screens.Font },
icon = { Icon(imageVector = Icons.Default.TextFields, contentDescription = null) },
icon = { Icon(imageVector = Icons.Default.Favorite, contentDescription = null) },
label = { Text("Fonts") }
)
NavigationBarItem(
selected = screen == Screens.File,
onClick = { screen = Screens.File },
icon = { Icon(imageVector = Icons.Default.Attachment, contentDescription = null) },
icon = { Icon(imageVector = Icons.Default.Info, contentDescription = null) },
label = { Text("Files") }
)
}
Expand Down

0 comments on commit 5cc685c

Please sign in to comment.