Set expicit fontSize parameter (to default value 1f), to test different fontScale more easily.
This commit is contained in:
parent
ec880b0b0d
commit
94c6223be2
1 changed files with 9 additions and 2 deletions
|
|
@ -42,6 +42,13 @@ const val DAY_MODE_NAME = "D"
|
|||
*
|
||||
* NB: Content should be wrapped into [ElementPreview] to apply proper theming.
|
||||
*/
|
||||
@Preview(name = DAY_MODE_NAME)
|
||||
@Preview(name = NIGHT_MODE_NAME, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(
|
||||
name = DAY_MODE_NAME,
|
||||
fontScale = 1f,
|
||||
)
|
||||
@Preview(
|
||||
name = NIGHT_MODE_NAME,
|
||||
uiMode = Configuration.UI_MODE_NIGHT_YES,
|
||||
fontScale = 1f,
|
||||
)
|
||||
annotation class DayNightPreviews
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue