From 5cc685c1dc70edbc0120cd7b64d8364d283e20cf Mon Sep 17 00:00:00 2001 From: Konstantin Date: Tue, 14 Nov 2023 13:00:51 +0100 Subject: [PATCH] Use regular icons instead of extended to fix build --- .../resources/demo/shared/build.gradle.kts | 1 - .../resources/demo/shared/UseResources.kt | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/components/resources/demo/shared/build.gradle.kts b/components/resources/demo/shared/build.gradle.kts index 74b2417b25..e3c500f0f7 100644 --- a/components/resources/demo/shared/build.gradle.kts +++ b/components/resources/demo/shared/build.gradle.kts @@ -57,7 +57,6 @@ kotlin { dependencies { implementation(compose.runtime) implementation(compose.material3) - implementation(compose.materialIconsExtended) implementation(project(":resources:library")) } } diff --git a/components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/UseResources.kt b/components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/UseResources.kt index 9f390a082d..83c46a63a2 100644 --- a/components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/UseResources.kt +++ b/components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/UseResources.kt @@ -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 @@ -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") } ) }