-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSyncNodeView.kt
More file actions
60 lines (51 loc) · 1.69 KB
/
SyncNodeView.kt
File metadata and controls
60 lines (51 loc) · 1.69 KB
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
60
package to.bitkit.ui.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import to.bitkit.R
import to.bitkit.ui.screens.transfer.components.TransferAnimationView
import to.bitkit.ui.shared.util.gradientBackground
import to.bitkit.ui.theme.AppThemeSurface
import to.bitkit.ui.theme.Colors
@Composable
fun SyncNodeView(modifier: Modifier) {
Column(
modifier = modifier,
horizontalAlignment = Alignment.CenterHorizontally
) {
VerticalSpacer(32.dp)
BodyM(
text = stringResource(R.string.lightning__wait_text_top),
color = Colors.White64,
modifier = Modifier.padding(horizontal = 16.dp)
)
FillHeight()
TransferAnimationView(
largeCircleRes = R.drawable.ln_sync_large,
smallCircleRes = R.drawable.ln_sync_small,
contentRes = R.drawable.lightning,
rotateContent = false
)
FillHeight()
BodySSB(text = stringResource(R.string.lightning__wait_text_bottom), color = Colors.White32)
VerticalSpacer(32.dp)
}
}
@Preview(showBackground = true)
@Composable
private fun Preview() {
AppThemeSurface {
SyncNodeView(
modifier = Modifier
.fillMaxSize()
.gradientBackground()
.padding(horizontal = 16.dp)
)
}
}