Skip to content

Commit 740ea19

Browse files
author
sds100
committed
#43 fix: do not color directions button
Signed-off-by: sds100 <developer.sds100@gmail.com>
1 parent df17a87 commit 740ea19

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/com/mapcode/map/MapScreen.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,10 @@ private fun MapControls(
395395
onShareMapcodeClick: () -> Unit = {},
396396
onAboutClick: () -> Unit = {}
397397
) {
398-
val greenButtonColors = ButtonDefaults.buttonColors(backgroundColor = Green600, contentColor = Color.White)
399398
val satelliteButtonColors: ButtonColors = if (isSatelliteModeEnabled) {
400399
ButtonDefaults.buttonColors(backgroundColor = Yellow300, contentColor = Color.Black)
401400
} else {
402-
greenButtonColors
401+
ButtonDefaults.buttonColors(backgroundColor = Green600, contentColor = Color.White)
403402
}
404403

405404
val satelliteButtonIcon: Painter = if (isSatelliteModeEnabled) {
@@ -443,7 +442,7 @@ private fun MapControls(
443442
.align(Alignment.Bottom),
444443
onClick = onDirectionsClick,
445444
contentPadding = PaddingValues(8.dp),
446-
colors = greenButtonColors
445+
colors = greyButtonColors()
447446
) {
448447
Icon(
449448
painter = painterResource(R.drawable.ic_outline_directions_24),

0 commit comments

Comments
 (0)