@@ -7,79 +7,79 @@ import androidx.compose.material3.lightColorScheme
7
7
import androidx.compose.runtime.Composable
8
8
9
9
private val LightColors =
10
- lightColorScheme(
11
- primary = md_theme_light_primary,
12
- onPrimary = md_theme_light_onPrimary,
13
- primaryContainer = md_theme_light_primaryContainer,
14
- onPrimaryContainer = md_theme_light_onPrimaryContainer,
15
- secondary = md_theme_light_secondary,
16
- onSecondary = md_theme_light_onSecondary,
17
- secondaryContainer = md_theme_light_secondaryContainer,
18
- onSecondaryContainer = md_theme_light_onSecondaryContainer,
19
- tertiary = md_theme_light_tertiary,
20
- onTertiary = md_theme_light_onTertiary,
21
- tertiaryContainer = md_theme_light_tertiaryContainer,
22
- onTertiaryContainer = md_theme_light_onTertiaryContainer,
23
- error = md_theme_light_error,
24
- errorContainer = md_theme_light_errorContainer,
25
- onError = md_theme_light_onError,
26
- onErrorContainer = md_theme_light_onErrorContainer,
27
- background = md_theme_light_background,
28
- onBackground = md_theme_light_onBackground,
29
- surface = md_theme_light_surface,
30
- onSurface = md_theme_light_onSurface,
31
- surfaceVariant = md_theme_light_surfaceVariant,
32
- onSurfaceVariant = md_theme_light_onSurfaceVariant,
33
- outline = md_theme_light_outline,
34
- inverseOnSurface = md_theme_light_inverseOnSurface,
35
- inverseSurface = md_theme_light_inverseSurface,
36
- inversePrimary = md_theme_light_inversePrimary,
37
- surfaceTint = md_theme_light_surfaceTint,
38
- outlineVariant = md_theme_light_outlineVariant,
39
- scrim = md_theme_light_scrim,
40
- )
10
+ lightColorScheme(
11
+ primary = md_theme_light_primary,
12
+ onPrimary = md_theme_light_onPrimary,
13
+ primaryContainer = md_theme_light_primaryContainer,
14
+ onPrimaryContainer = md_theme_light_onPrimaryContainer,
15
+ secondary = md_theme_light_secondary,
16
+ onSecondary = md_theme_light_onSecondary,
17
+ secondaryContainer = md_theme_light_secondaryContainer,
18
+ onSecondaryContainer = md_theme_light_onSecondaryContainer,
19
+ tertiary = md_theme_light_tertiary,
20
+ onTertiary = md_theme_light_onTertiary,
21
+ tertiaryContainer = md_theme_light_tertiaryContainer,
22
+ onTertiaryContainer = md_theme_light_onTertiaryContainer,
23
+ error = md_theme_light_error,
24
+ errorContainer = md_theme_light_errorContainer,
25
+ onError = md_theme_light_onError,
26
+ onErrorContainer = md_theme_light_onErrorContainer,
27
+ background = md_theme_light_background,
28
+ onBackground = md_theme_light_onBackground,
29
+ surface = md_theme_light_surface,
30
+ onSurface = md_theme_light_onSurface,
31
+ surfaceVariant = md_theme_light_surfaceVariant,
32
+ onSurfaceVariant = md_theme_light_onSurfaceVariant,
33
+ outline = md_theme_light_outline,
34
+ inverseOnSurface = md_theme_light_inverseOnSurface,
35
+ inverseSurface = md_theme_light_inverseSurface,
36
+ inversePrimary = md_theme_light_inversePrimary,
37
+ surfaceTint = md_theme_light_surfaceTint,
38
+ outlineVariant = md_theme_light_outlineVariant,
39
+ scrim = md_theme_light_scrim,
40
+ )
41
41
42
42
private val DarkColors =
43
- darkColorScheme(
44
- primary = md_theme_dark_primary,
45
- onPrimary = md_theme_dark_onPrimary,
46
- primaryContainer = md_theme_dark_primaryContainer,
47
- onPrimaryContainer = md_theme_dark_onPrimaryContainer,
48
- secondary = md_theme_dark_secondary,
49
- onSecondary = md_theme_dark_onSecondary,
50
- secondaryContainer = md_theme_dark_secondaryContainer,
51
- onSecondaryContainer = md_theme_dark_onSecondaryContainer,
52
- tertiary = md_theme_dark_tertiary,
53
- onTertiary = md_theme_dark_onTertiary,
54
- tertiaryContainer = md_theme_dark_tertiaryContainer,
55
- onTertiaryContainer = md_theme_dark_onTertiaryContainer,
56
- error = md_theme_dark_error,
57
- errorContainer = md_theme_dark_errorContainer,
58
- onError = md_theme_dark_onError,
59
- onErrorContainer = md_theme_dark_onErrorContainer,
60
- background = md_theme_dark_background,
61
- onBackground = md_theme_dark_onBackground,
62
- surface = md_theme_dark_surface,
63
- onSurface = md_theme_dark_onSurface,
64
- surfaceVariant = md_theme_dark_surfaceVariant,
65
- onSurfaceVariant = md_theme_dark_onSurfaceVariant,
66
- outline = md_theme_dark_outline,
67
- inverseOnSurface = md_theme_dark_inverseOnSurface,
68
- inverseSurface = md_theme_dark_inverseSurface,
69
- inversePrimary = md_theme_dark_inversePrimary,
70
- surfaceTint = md_theme_dark_surfaceTint,
71
- outlineVariant = md_theme_dark_outlineVariant,
72
- scrim = md_theme_dark_scrim,
73
- )
43
+ darkColorScheme(
44
+ primary = md_theme_dark_primary,
45
+ onPrimary = md_theme_dark_onPrimary,
46
+ primaryContainer = md_theme_dark_primaryContainer,
47
+ onPrimaryContainer = md_theme_dark_onPrimaryContainer,
48
+ secondary = md_theme_dark_secondary,
49
+ onSecondary = md_theme_dark_onSecondary,
50
+ secondaryContainer = md_theme_dark_secondaryContainer,
51
+ onSecondaryContainer = md_theme_dark_onSecondaryContainer,
52
+ tertiary = md_theme_dark_tertiary,
53
+ onTertiary = md_theme_dark_onTertiary,
54
+ tertiaryContainer = md_theme_dark_tertiaryContainer,
55
+ onTertiaryContainer = md_theme_dark_onTertiaryContainer,
56
+ error = md_theme_dark_error,
57
+ errorContainer = md_theme_dark_errorContainer,
58
+ onError = md_theme_dark_onError,
59
+ onErrorContainer = md_theme_dark_onErrorContainer,
60
+ background = md_theme_dark_background,
61
+ onBackground = md_theme_dark_onBackground,
62
+ surface = md_theme_dark_surface,
63
+ onSurface = md_theme_dark_onSurface,
64
+ surfaceVariant = md_theme_dark_surfaceVariant,
65
+ onSurfaceVariant = md_theme_dark_onSurfaceVariant,
66
+ outline = md_theme_dark_outline,
67
+ inverseOnSurface = md_theme_dark_inverseOnSurface,
68
+ inverseSurface = md_theme_dark_inverseSurface,
69
+ inversePrimary = md_theme_dark_inversePrimary,
70
+ surfaceTint = md_theme_dark_surfaceTint,
71
+ outlineVariant = md_theme_dark_outlineVariant,
72
+ scrim = md_theme_dark_scrim,
73
+ )
74
74
75
75
@Composable
76
76
fun AppTheme (useDarkTheme : Boolean = isSystemInDarkTheme(), content : @Composable () -> Unit ) {
77
- val colors =
78
- if (! useDarkTheme) {
79
- LightColors
80
- } else {
81
- DarkColors
82
- }
77
+ val colors =
78
+ if (! useDarkTheme) {
79
+ LightColors
80
+ } else {
81
+ DarkColors
82
+ }
83
83
84
- MaterialTheme (colorScheme = colors, content = content)
84
+ MaterialTheme (colorScheme = colors, content = content)
85
85
}
0 commit comments