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:
@@ -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
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user