@@ -38,15 +38,11 @@ import androidx.compose.ui.Modifier
3838import androidx.compose.ui.platform.LocalContext
3939
4040private val DarkColorScheme = darkColorScheme(
41- primary = Purple80 ,
42- secondary = PurpleGrey80 ,
43- tertiary = Pink80
41+ primary = Purple80 , secondary = PurpleGrey80 , tertiary = Pink80
4442)
4543
4644private val LightColorScheme = lightColorScheme(
47- primary = Purple40 ,
48- secondary = PurpleGrey40 ,
49- tertiary = Pink40
45+ primary = Purple40 , secondary = PurpleGrey40 , tertiary = Pink40
5046
5147 /* Other default colors to override
5248background = Color(0xFFFFFBFE),
@@ -63,8 +59,7 @@ onSurface = Color(0xFF1C1B1F),
6359fun EasySyncTheme (
6460 darkTheme : Boolean = isSystemInDarkTheme(),
6561 // Dynamic color is available on Android 12+
66- dynamicColor : Boolean = true,
67- content : @Composable () -> Unit
62+ dynamicColor : Boolean = true, content : @Composable () -> Unit
6863) {
6964 val colorScheme = when {
7065 dynamicColor && Build .VERSION .SDK_INT >= Build .VERSION_CODES .S -> {
@@ -76,9 +71,7 @@ fun EasySyncTheme(
7671 else -> LightColorScheme
7772 }
7873 MaterialTheme (
79- colorScheme = colorScheme,
80- typography = Typography ,
81- content = content
74+ colorScheme = colorScheme, typography = Typography , content = content
8275 )
8376}
8477
@@ -87,12 +80,8 @@ fun ThemeSurface(content: @Composable () -> Unit) {
8780 EasySyncTheme {
8881 Surface (
8982 color = MaterialTheme .colorScheme.background,
90- ) {
91- Surface (
92- modifier = Modifier
93- .safeDrawingPadding(),
94- content = content
95- )
96- }
83+ modifier = Modifier .safeDrawingPadding(),
84+ content = content
85+ )
9786 }
9887}
0 commit comments