mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
placeholder app icon
This commit is contained in:
parent
67eea21ea4
commit
370cb264af
34 changed files with 137 additions and 224 deletions
|
|
@ -31,10 +31,14 @@ fun NodeIcon(modifier: Modifier = Modifier.None, node: NodeInfo) {
|
|||
@Composable
|
||||
fun CompassHeading(modifier: Modifier = Modifier.None, node: NodeInfo) {
|
||||
Column {
|
||||
Container(modifier = modifier + LayoutSize(40.dp, 40.dp)) {
|
||||
VectorImage(id = R.drawable.navigation)
|
||||
if (node.position != null) {
|
||||
Container(modifier = modifier + LayoutSize(40.dp, 40.dp)) {
|
||||
VectorImage(id = R.drawable.navigation)
|
||||
}
|
||||
Text("2.3 km")
|
||||
} else Container(modifier = modifier + LayoutSize(40.dp, 40.dp)) {
|
||||
VectorImage(id = R.drawable.help)
|
||||
}
|
||||
Text("2.3 km")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -74,5 +78,8 @@ fun NodeInfoCard(node: NodeInfo) {
|
|||
@Preview
|
||||
@Composable
|
||||
fun nodeInfoPreview() {
|
||||
NodeInfoCard(UIState.testNodes[0])
|
||||
Column {
|
||||
NodeInfoCard(UIState.testNodes[0])
|
||||
NodeInfoCard(UIState.testNodeNoPosition)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue