Match the alarm part's typography to the date part

The alarm text used the button's default labelLarge in the vertical layout
and titleMedium in the compact one. Use titleMedium / titleLarge(Medium),
the same styles the date part uses, so both parts look alike.
This commit is contained in:
2026-09-11 13:22:59 +02:00
parent a0f9413d40
commit cb07acb577

View File

@@ -17,6 +17,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.core.content.getSystemService
import de.mm20.launcher2.ktx.tryStartActivity
@@ -108,6 +109,7 @@ class AlarmPartProvider : PartProvider {
Text(
modifier = Modifier.padding(start = 12.dp),
text = alarmText,
style = MaterialTheme.typography.titleMedium
)
}
} else {
@@ -127,7 +129,9 @@ class AlarmPartProvider : PartProvider {
Text(
modifier = Modifier.padding(start = 12.dp),
text = alarmText,
style = MaterialTheme.typography.titleMedium
style = MaterialTheme.typography.titleLarge.copy(
fontWeight = FontWeight.Medium
)
)
}
}