Skip to content

Commit

Permalink
example: Change icons
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Oct 20, 2024
1 parent c819fac commit 9a0b5e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ kotlin {
implementation(compose.ui)
implementation(compose.components.resources)

implementation(compose.materialIconsExtended)
implementation(compose.material3)
implementation(project(":miuix"))
}
desktopMain.dependencies {
Expand Down
4 changes: 2 additions & 2 deletions composeApp/src/commonMain/kotlin/UITest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.foundation.pager.PagerState
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Favorite
import androidx.compose.material.icons.rounded.Home
import androidx.compose.material.icons.rounded.Settings
import androidx.compose.material.icons.rounded.Star
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState
Expand Down Expand Up @@ -74,7 +74,7 @@ fun UITest(

val items = listOf(
NavigationItem("HomePage", Icons.Rounded.Home),
NavigationItem("DropDown", Icons.Rounded.Star),
NavigationItem("DropDown", Icons.Rounded.Favorite),
NavigationItem("Settings", Icons.Rounded.Settings)
)

Expand Down
4 changes: 2 additions & 2 deletions composeApp/src/commonMain/kotlin/component/TextComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Computer
import androidx.compose.material.icons.rounded.AccountBox
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
Expand Down Expand Up @@ -119,7 +119,7 @@ fun TextComponent() {
) {
Image(
colorFilter = ColorFilter.tint(MiuixTheme.colorScheme.onBackground),
imageVector = Icons.Rounded.Computer,
imageVector = Icons.Rounded.AccountBox,
contentDescription = "Person",
)
}
Expand Down

0 comments on commit 9a0b5e9

Please sign in to comment.