Skip to content

Commit 45ec910

Browse files
committed
Typo
1 parent 308014d commit 45ec910

File tree

1 file changed

+7
-18
lines changed
  • app/src/main/java/com/phpbg/easysync/ui/theme

1 file changed

+7
-18
lines changed

app/src/main/java/com/phpbg/easysync/ui/theme/Theme.kt

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@ import androidx.compose.ui.Modifier
3838
import androidx.compose.ui.platform.LocalContext
3939

4040
private val DarkColorScheme = darkColorScheme(
41-
primary = Purple80,
42-
secondary = PurpleGrey80,
43-
tertiary = Pink80
41+
primary = Purple80, secondary = PurpleGrey80, tertiary = Pink80
4442
)
4543

4644
private 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
5248
background = Color(0xFFFFFBFE),
@@ -63,8 +59,7 @@ onSurface = Color(0xFF1C1B1F),
6359
fun 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

Comments
 (0)