mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Update color preview
This commit is contained in:
parent
cf1649a6af
commit
c44e75fe78
@ -78,18 +78,34 @@ fun transparentButtonColors() = ButtonDefaults.buttonColors(backgroundColor = Co
|
||||
@Composable
|
||||
fun destructiveButtonColors() = ButtonDefaults.buttonColors(backgroundColor = Color.Transparent, contentColor = colorDestructive)
|
||||
|
||||
@Preview @Composable fun ClassicLight() { Colors("classic light", classicLightColors) }
|
||||
@Preview @Composable fun ClassicDark() { Colors("classic dark", classicDarkColors) }
|
||||
@Preview @Composable fun OceanLight() { Colors("ocean light", oceanLightColors) }
|
||||
@Preview @Composable fun OceanDark() { Colors("ocean dark", oceanDarkColors) }
|
||||
|
||||
@Composable
|
||||
fun Colors(name: String, colors: List<Color>) {
|
||||
Column {
|
||||
colors.forEachIndexed { i, it ->
|
||||
Box(Modifier.background(it)) {
|
||||
Text("$name: $i")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun PreviewMessageDetails(
|
||||
fun PreviewThemeColors(
|
||||
@PreviewParameter(ThemeResPreviewParameterProvider::class) themeResId: Int
|
||||
) {
|
||||
PreviewTheme(themeResId) {
|
||||
Colors()
|
||||
ThemeColors()
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Colors() {
|
||||
private fun ThemeColors() {
|
||||
AppTheme {
|
||||
Column {
|
||||
Box(Modifier.background(MaterialTheme.colors.primary)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user