@@ -142,6 +142,7 @@ Scaffold {
142142| titleColor | BasicComponentColors | Title text color config | BasicComponentDefaults.titleColor() | No |
143143| summary | String? | Selector description | null | No |
144144| summaryColor | BasicComponentColors | Summary text color config | BasicComponentDefaults.summaryColor() | No |
145+ | spinnerColors | SpinnerColors | Color configuration for spinner | SpinnerDefaults.spinnerColors() | No |
145146| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
146147| modifier | Modifier | Component modifier | Modifier | No |
147148| insideMargin | PaddingValues | Internal content padding | BasicComponentDefaults.InsideMargin | No |
@@ -161,6 +162,7 @@ Scaffold {
161162| titleColor | BasicComponentColors | Title text color config | BasicComponentDefaults.titleColor() | No |
162163| summary | String? | Selector description | null | No |
163164| summaryColor | BasicComponentColors | Summary text color config | BasicComponentDefaults.summaryColor() | No |
165+ | spinnerColors | SpinnerColors | Color configuration for spinner | SpinnerDefaults.spinnerColors() | No |
164166| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
165167| dialogButtonString | String | Dialog bottom button text | - | Yes |
166168| popupModifier | Modifier | Dialog popup modifier | Modifier | No |
@@ -179,8 +181,49 @@ Scaffold {
179181| title | String? | Option title |
180182| summary | String? | Option description |
181183
184+ ### SpinnerColors Properties
185+
186+ | Property Name | Type | Description |
187+ | ------------------------ | ----- | --------------------------------- |
188+ | contentColor | Color | Option title color |
189+ | summaryColor | Color | Option summary color |
190+ | containerColor | Color | Option background color |
191+ | selectedContentColor | Color | Selected item title color |
192+ | selectedSummaryColor | Color | Selected item summary color |
193+ | selectedContainerColor | Color | Selected item background color |
194+ | selectedIndicatorColor | Color | Selected check icon color |
195+
182196## Advanced Usage
183197
198+ ### Custom Colors
199+
200+ ``` kotlin
201+ var selectedIndex by remember { mutableStateOf(0 ) }
202+ val options = listOf (
203+ SpinnerEntry (title = " Red" ),
204+ SpinnerEntry (title = " Green" ),
205+ SpinnerEntry (title = " Blue" )
206+ )
207+
208+ Scaffold {
209+ SuperSpinner (
210+ title = " Custom Colors" ,
211+ items = options,
212+ selectedIndex = selectedIndex,
213+ onSelectedIndexChange = { selectedIndex = it },
214+ spinnerColors = SpinnerDefaults .spinnerColors(
215+ contentColor = MiuixTheme .colorScheme.onSurface,
216+ summaryColor = MiuixTheme .colorScheme.onSurfaceVariantSummary,
217+ containerColor = MiuixTheme .colorScheme.surface,
218+ selectedContentColor = Color .Red ,
219+ selectedSummaryColor = Color .Red ,
220+ selectedContainerColor = Color .Red .copy(alpha = 0.12f ),
221+ selectedIndicatorColor = Color .Red
222+ )
223+ )
224+ }
225+ ```
226+
184227### Custom Left Content
185228
186229``` kotlin
0 commit comments