Skip to content

Commit 5c75925

Browse files
committed
docs: Fix FloatingToolbarDemo icons color
1 parent 752f3df commit 5c75925

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

docs/demo/src/commonMain/kotlin/FloatingToolbarDemo.kt

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import top.yukonga.miuix.kmp.extra.SuperArrow
2525
import top.yukonga.miuix.kmp.icon.MiuixIcons
2626
import top.yukonga.miuix.kmp.icon.icons.useful.Delete
2727
import top.yukonga.miuix.kmp.icon.icons.useful.Edit
28+
import top.yukonga.miuix.kmp.theme.MiuixTheme
2829

2930
@Composable
3031
fun FloatingToolbarDemo() {
@@ -56,10 +57,18 @@ fun FloatingToolbarDemo() {
5657
horizontalArrangement = Arrangement.spacedBy(8.dp)
5758
) { // or Column
5859
IconButton(onClick = { /* Action 1 */ }) {
59-
Icon(MiuixIcons.Useful.Edit, contentDescription = "Edit")
60+
Icon(
61+
imageVector = MiuixIcons.Useful.Edit,
62+
contentDescription = "Edit",
63+
tint = MiuixTheme.colorScheme.onBackground
64+
)
6065
}
6166
IconButton(onClick = { /* Action 2 */ }) {
62-
Icon(MiuixIcons.Useful.Delete, contentDescription = "Delete")
67+
Icon(
68+
imageVector = MiuixIcons.Useful.Delete,
69+
contentDescription = "Delete",
70+
tint = MiuixTheme.colorScheme.onBackground
71+
)
6372
}
6473
}
6574
}
@@ -87,10 +96,18 @@ fun FloatingToolbarDemo() {
8796
horizontalArrangement = Arrangement.spacedBy(8.dp)
8897
) { // or Column
8998
IconButton(onClick = { /* Action 1 */ }) {
90-
Icon(MiuixIcons.Useful.Edit, contentDescription = "Edit")
99+
Icon(
100+
imageVector = MiuixIcons.Useful.Edit,
101+
contentDescription = "Edit",
102+
tint = MiuixTheme.colorScheme.onBackground
103+
)
91104
}
92105
IconButton(onClick = { /* Action 2 */ }) {
93-
Icon(MiuixIcons.Useful.Delete, contentDescription = "Delete")
106+
Icon(
107+
imageVector = MiuixIcons.Useful.Delete,
108+
contentDescription = "Delete",
109+
tint = MiuixTheme.colorScheme.onBackground
110+
)
94111
}
95112
}
96113
}

0 commit comments

Comments
 (0)