Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package org.meshtastic.core.ui.component

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material3.SnackbarResult
Expand Down Expand Up @@ -61,7 +62,7 @@ fun MeshtasticSnackbarProvider(
content()
SnackbarHost(
hostState = snackbarHostState,
modifier = Modifier.align(Alignment.BottomCenter).then(hostModifier),
modifier = Modifier.align(Alignment.BottomCenter).safeDrawingPadding().then(hostModifier),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.meshtastic.core.ui.component
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import org.jetbrains.compose.resources.stringResource
import org.meshtastic.core.resources.Res
import org.meshtastic.core.resources.internal
Expand Down Expand Up @@ -46,5 +47,5 @@ fun TransportIcon(transport: Int, viaMqtt: Boolean, modifier: Modifier = Modifie
MeshtasticIcons.Device to stringResource(Res.string.internal)
else -> return
}
Icon(icon, contentDescription = description, modifier = modifier)
Icon(icon, contentDescription = description, modifier = modifier, tint = Color.White)
}
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,7 @@ fun MessageItem(
imageVector = MeshtasticIcons.HopCount,
contentDescription = null,
modifier = Modifier.size(14.dp),
tint =
contentColor.copy(
alpha = if (contrastLevel == ContrastLevel.HIGH) 1f else 0.7f,
),
tint = Color.White,
)
Text(
text =
Expand All @@ -318,6 +315,7 @@ fun MessageItem(
"?"
},
style = metadataStyle,
color = Color.White,
)
}
}
Expand Down