Set expicit fontSize parameter (to default value 1f), to test different fontScale more easily.
This commit is contained in:
parent
006ecd51ee
commit
fb870a0903
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.
|
* NB: Content should be wrapped into [ElementPreview] to apply proper theming.
|
||||||
*/
|
*/
|
||||||
@Preview(name = DAY_MODE_NAME)
|
@Preview(
|
||||||
@Preview(name = NIGHT_MODE_NAME, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
name = DAY_MODE_NAME,
|
||||||
|
fontScale = 1f,
|
||||||
|
)
|
||||||
|
@Preview(
|
||||||
|
name = NIGHT_MODE_NAME,
|
||||||
|
uiMode = Configuration.UI_MODE_NIGHT_YES,
|
||||||
|
fontScale = 1f,
|
||||||
|
)
|
||||||
annotation class DayNightPreviews
|
annotation class DayNightPreviews
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue