File tree 2 files changed +4
-7
lines changed
demo/android/src/main/java/com/michaelflisar/composepreferences/demo/classes
library/core/src/commonMain/kotlin/com/michaelflisar/composepreferences/core/styles
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,7 @@ object DemoPrefs : SettingsModel(DataStoreStorage.create(name = "demo1_prefs"))
75
75
style = style ? : (data[6 ] as DemoStyle ).let {
76
76
when (it) {
77
77
DemoStyle .Default -> DefaultStyle .create()
78
- DemoStyle .Modern -> ModernStyle .create(
79
- // sectionGroupItemBackgroundColor = MaterialTheme.colorScheme.surfaceContainerHighest,
80
- // sectionGroupItemForegroundColor = MaterialTheme.colorScheme.onSurface
81
- )
78
+ DemoStyle .Modern -> ModernStyle .create()
82
79
}
83
80
},
84
81
animationSpec = animationSpec
Original file line number Diff line number Diff line change @@ -56,14 +56,14 @@ class ModernStyle internal constructor(
56
56
* @param spacing the spacing between preference items
57
57
*/
58
58
@Composable
59
- fun create (
59
+ fun create (
60
60
cornerSize : Dp = DEFAULT_CORNER_SIZE ,
61
61
backgroundColor : Color = MaterialTheme .colorScheme.background,
62
62
foregroundColor : Color = MaterialTheme .colorScheme.onBackground,
63
63
sectionBackgroundColor : Color = MaterialTheme .colorScheme.background,
64
64
sectionForegroundColor : Color = MaterialTheme .colorScheme.primary,
65
- sectionGroupItemBackgroundColor : Color = MaterialTheme .colorScheme.primaryContainer ,
66
- sectionGroupItemForegroundColor : Color = MaterialTheme .colorScheme.onPrimaryContainer ,
65
+ sectionGroupItemBackgroundColor : Color = MaterialTheme .colorScheme.surfaceContainerHighest ,
66
+ sectionGroupItemForegroundColor : Color = MaterialTheme .colorScheme.onSurface ,
67
67
alphaVariant : Float = PreferenceItemDefaults .DEFAULT_ALPHA_VARIANT ,
68
68
innerPadding : PaddingValues = PreferenceStyleDefaults .DEFAULT_INNER_PADDING ,
69
69
outerPadding : PaddingValues = DEFAULT_OUTER_PADDING ,
You can’t perform that action at this time.
0 commit comments