Set expicit fontSize parameter (to default value 1f), to test different fontScale more easily.
This commit is contained in:
committed by
Benoit Marty
parent
006ecd51ee
commit
fb870a0903
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user