android: fix text color in troubshooting button and pressandhold settings

This commit is contained in:
Kavish Devar
2025-09-28 18:12:01 +05:30
parent 5ec300aad8
commit 48b715af68
2 changed files with 4 additions and 1 deletions

View File

@@ -350,7 +350,8 @@ fun AirPodsSettingsScreen(dev: BluetoothDevice?, service: AirPodsService,
style = TextStyle( style = TextStyle(
fontSize = 16.sp, fontSize = 16.sp,
fontWeight = FontWeight.Medium, fontWeight = FontWeight.Medium,
fontFamily = FontFamily(Font(R.font.sf_pro)) fontFamily = FontFamily(Font(R.font.sf_pro)),
color = if (isSystemInDarkTheme()) Color.White else Color.Black
) )
) )
} }

View File

@@ -442,10 +442,12 @@ fun LongPressActionElement(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween horizontalArrangement = Arrangement.SpaceBetween
) { ) {
val isDarkTheme = isSystemInDarkTheme()
Text( Text(
name, name,
fontSize = 16.sp, fontSize = 16.sp,
fontFamily = FontFamily(Font(R.font.sf_pro)), fontFamily = FontFamily(Font(R.font.sf_pro)),
color = if (isDarkTheme) Color.White else Color.Black,
modifier = Modifier modifier = Modifier
.weight(1f) .weight(1f)
.padding(start = 4.dp) .padding(start = 4.dp)