Skip to content

Commit 48b715a

Browse files
committed
android: fix text color in troubshooting button and pressandhold settings
1 parent 5ec300a commit 48b715a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

android/app/src/main/java/me/kavishdevar/librepods/screens/AirPodsSettingsScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ fun AirPodsSettingsScreen(dev: BluetoothDevice?, service: AirPodsService,
350350
style = TextStyle(
351351
fontSize = 16.sp,
352352
fontWeight = FontWeight.Medium,
353-
fontFamily = FontFamily(Font(R.font.sf_pro))
353+
fontFamily = FontFamily(Font(R.font.sf_pro)),
354+
color = if (isSystemInDarkTheme()) Color.White else Color.Black
354355
)
355356
)
356357
}

android/app/src/main/java/me/kavishdevar/librepods/screens/PressAndHoldSettingsScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,12 @@ fun LongPressActionElement(
442442
verticalAlignment = Alignment.CenterVertically,
443443
horizontalArrangement = Arrangement.SpaceBetween
444444
) {
445+
val isDarkTheme = isSystemInDarkTheme()
445446
Text(
446447
name,
447448
fontSize = 16.sp,
448449
fontFamily = FontFamily(Font(R.font.sf_pro)),
450+
color = if (isDarkTheme) Color.White else Color.Black,
449451
modifier = Modifier
450452
.weight(1f)
451453
.padding(start = 4.dp)

0 commit comments

Comments
 (0)