Browse Source

Use regular icons instead of extended to fix build

pull/3931/head
Konstantin 1 year ago committed by GitHub
parent
commit
5cc685c1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/resources/demo/shared/build.gradle.kts
  2. 16
      components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/UseResources.kt

1
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"))
}
}

16
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") }
)
}

Loading…
Cancel
Save