1
- package com.jetbrains.simplelogin.kotlinmultiplatformsandbox
1
+ package com.jetbrains.simplelogin.kotlinmultiplatformsandbox.android
2
2
3
3
import androidx.compose.foundation.isSystemInDarkTheme
4
4
import androidx.compose.foundation.shape.RoundedCornerShape
5
- import androidx.compose.material .MaterialTheme
6
- import androidx.compose.material .Shapes
7
- import androidx.compose.material .Typography
8
- import androidx.compose.material.darkColors
9
- import androidx.compose.material.lightColors
5
+ import androidx.compose.material3 .MaterialTheme
6
+ import androidx.compose.material3 .Shapes
7
+ import androidx.compose.material3 .Typography
8
+ import androidx.compose.material3.darkColorScheme
9
+ import androidx.compose.material3.lightColorScheme
10
10
import androidx.compose.runtime.Composable
11
11
import androidx.compose.ui.graphics.Color
12
12
import androidx.compose.ui.text.TextStyle
@@ -21,20 +21,20 @@ fun MyApplicationTheme(
21
21
content : @Composable () -> Unit
22
22
) {
23
23
val colors = if (darkTheme) {
24
- darkColors (
24
+ darkColorScheme (
25
25
primary = Color (0xFFBB86FC ),
26
- primaryVariant = Color (0xFF3700B3 ),
27
- secondary = Color (0xFF03DAC5 )
26
+ secondary = Color (0xFF03DAC5 ),
27
+ tertiary = Color (0xFF3700B3 )
28
28
)
29
29
} else {
30
- lightColors (
30
+ lightColorScheme (
31
31
primary = Color (0xFF6200EE ),
32
- primaryVariant = Color (0xFF3700B3 ),
33
- secondary = Color (0xFF03DAC5 )
32
+ secondary = Color (0xFF03DAC5 ),
33
+ tertiary = Color (0xFF3700B3 )
34
34
)
35
35
}
36
36
val typography = Typography (
37
- body1 = TextStyle (
37
+ bodyMedium = TextStyle (
38
38
fontFamily = FontFamily .Default ,
39
39
fontWeight = FontWeight .Normal ,
40
40
fontSize = 16 .sp
@@ -47,7 +47,7 @@ fun MyApplicationTheme(
47
47
)
48
48
49
49
MaterialTheme (
50
- colors = colors,
50
+ colorScheme = colors,
51
51
typography = typography,
52
52
shapes = shapes,
53
53
content = content
0 commit comments