File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -114,19 +114,29 @@ object BasicComponentDefaults {
114114 * The default color of the title.
115115 */
116116 @Composable
117- fun titleColor () = BasicComponentColors (
118- color = MiuixTheme .colorScheme.onSurface,
119- disabledColor = MiuixTheme .colorScheme.disabledOnSecondaryVariant
120- )
117+ fun titleColor (
118+ color : Color = MiuixTheme .colorScheme.onSurface,
119+ disabledColor : Color = MiuixTheme .colorScheme.disabledOnSecondaryVariant
120+ ): BasicComponentColors {
121+ return BasicComponentColors (
122+ color = color,
123+ disabledColor = disabledColor
124+ )
125+ }
121126
122127 /* *
123128 * The default color of the summary.
124129 */
125130 @Composable
126- fun summaryColor () = BasicComponentColors (
127- color = MiuixTheme .colorScheme.onSurfaceVariantSummary,
128- disabledColor = MiuixTheme .colorScheme.disabledOnSecondaryVariant
129- )
131+ fun summaryColor (
132+ color : Color = MiuixTheme .colorScheme.onSurfaceVariantSummary,
133+ disabledColor : Color = MiuixTheme .colorScheme.disabledOnSecondaryVariant
134+ ): BasicComponentColors {
135+ return BasicComponentColors (
136+ color = color,
137+ disabledColor = disabledColor
138+ )
139+ }
130140}
131141
132142@Immutable
You can’t perform that action at this time.
0 commit comments