@@ -25,6 +25,7 @@ import top.yukonga.miuix.kmp.extra.SuperArrow
2525import top.yukonga.miuix.kmp.icon.MiuixIcons
2626import top.yukonga.miuix.kmp.icon.icons.useful.Delete
2727import top.yukonga.miuix.kmp.icon.icons.useful.Edit
28+ import top.yukonga.miuix.kmp.theme.MiuixTheme
2829
2930@Composable
3031fun 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