-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTheme.kt
59 lines (53 loc) · 1.4 KB
/
Theme.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package dev.fredag.cheerwithme.ui
import android.util.Log
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
private val DarkColorPalette = darkColors(
background = dark,
surface = lightDark,
primary = beerYellow,
onPrimary = white,
onBackground = gray,
onSurface = gray, // TODO? was light dark
onSecondary = white,
secondary = gray,
)
private val LightColorPalette = lightColors(
background = dark,
surface = dark,
primary = beerYellow,
onPrimary = fontColor,
onBackground = gray,
onSurface = gray, // TODO? was light dark
onSecondary = fontColor,
secondary = gray,
/* Other default colors to override
background = Color.White,
surface = Color.White,
onPrimary = Color.White,
onSecondary = Color.Black,
onBackground = Color.Black,
onSurface = Color.Black,
*/
)
@Composable
fun CheerWithMeTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable () -> Unit
) {
val colors = if (false) {
DarkColorPalette
} else {
LightColorPalette
}
Log.d("CheerWithMeTheme", darkTheme.toString())
MaterialTheme(
colors = colors,
typography = typography,
shapes = shapes,
content = content
)
}