File tree Expand file tree Collapse file tree
feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import org.meshtastic.core.ui.icon.MeshtasticIcons
4242import org.meshtastic.core.ui.icon.MyLocation
4343import org.meshtastic.core.ui.icon.Refresh
4444import org.meshtastic.core.ui.icon.Tune
45+ import org.meshtastic.core.ui.theme.StatusColors.StatusBlue
4546import org.meshtastic.core.ui.theme.StatusColors.StatusRed
4647
4748/* *
@@ -127,9 +128,11 @@ fun MapControlsOverlay(
127128
128129@Composable
129130private fun CompassButton (onClick : () -> Unit , bearing : Float , isFollowing : Boolean ) {
131+ // Tint, not `primary` — tinting the icon `primary` painted it the same color as its own primary-colored
132+ // button background, making the compass disappear while following.
130133 val iconTint =
131134 when {
132- isFollowing -> MaterialTheme .colorScheme.primary
135+ isFollowing -> MaterialTheme .colorScheme.StatusBlue
133136 bearing == 0f -> MaterialTheme .colorScheme.StatusRed
134137 else -> null
135138 }
You can’t perform that action at this time.
0 commit comments