2022-03-08 11:05:03 -08:00
|
|
|
package co.electriccoin.zcash.ui.screen.debug.view
|
2021-10-31 10:36:51 -07:00
|
|
|
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
|
import androidx.compose.material.icons.Icons
|
|
|
|
import androidx.compose.material.icons.filled.List
|
|
|
|
import androidx.compose.material.icons.filled.Person
|
|
|
|
import androidx.compose.material.icons.filled.Shield
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.ui.Modifier
|
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
2022-02-21 06:50:09 -08:00
|
|
|
import co.electriccoin.zcash.spackle.model.Index
|
|
|
|
import co.electriccoin.zcash.spackle.model.Progress
|
2022-03-08 11:05:03 -08:00
|
|
|
import co.electriccoin.zcash.ui.design.component.Body
|
|
|
|
import co.electriccoin.zcash.ui.design.component.Chip
|
|
|
|
import co.electriccoin.zcash.ui.design.component.GradientSurface
|
|
|
|
import co.electriccoin.zcash.ui.design.component.Header
|
|
|
|
import co.electriccoin.zcash.ui.design.component.NavigationButton
|
|
|
|
import co.electriccoin.zcash.ui.design.component.PinkProgress
|
|
|
|
import co.electriccoin.zcash.ui.design.component.PrimaryButton
|
|
|
|
import co.electriccoin.zcash.ui.design.component.SecondaryButton
|
|
|
|
import co.electriccoin.zcash.ui.design.component.TertiaryButton
|
|
|
|
import co.electriccoin.zcash.ui.design.theme.ZcashTheme
|
|
|
|
import co.electriccoin.zcash.ui.screen.onboarding.view.Callout
|
2021-10-31 10:36:51 -07:00
|
|
|
|
|
|
|
@Preview
|
|
|
|
@Composable
|
|
|
|
fun ComposablePreview() {
|
|
|
|
ZcashTheme(darkTheme = false) {
|
|
|
|
DesignGuide()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
// Allowing magic numbers since this is debug-only
|
|
|
|
@Suppress("MagicNumber")
|
|
|
|
fun DesignGuide() {
|
2021-12-09 12:18:18 -08:00
|
|
|
GradientSurface {
|
2021-10-31 10:36:51 -07:00
|
|
|
Column {
|
|
|
|
Header(text = "H1")
|
|
|
|
Body(text = "body")
|
|
|
|
NavigationButton(onClick = { }, text = "Back")
|
|
|
|
NavigationButton(onClick = { }, text = "Next")
|
|
|
|
PrimaryButton(onClick = { }, text = "Primary button")
|
|
|
|
SecondaryButton(onClick = { }, text = "Secondary button")
|
|
|
|
TertiaryButton(onClick = { }, text = "Tertiary button")
|
|
|
|
Callout(Icons.Filled.Shield, contentDescription = "Shield")
|
|
|
|
Callout(Icons.Filled.Person, contentDescription = "Person")
|
|
|
|
Callout(Icons.Filled.List, contentDescription = "List")
|
|
|
|
PinkProgress(progress = Progress(Index(1), Index(4)), Modifier.fillMaxWidth())
|
2021-11-08 09:31:10 -08:00
|
|
|
Chip(Index(1), "edict")
|
2021-10-31 10:36:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|