For #28201 - Make a LightDarkPreview annotation
Add LightDarkPreview annotation
This commit is contained in:
parent
4f8c9c3e64
commit
cab8c35568
|
@ -0,0 +1,16 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.compose.annotation
|
||||
|
||||
import android.content.res.Configuration
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
|
||||
/**
|
||||
* A wrapper annotation for the two uiMode that are commonly used
|
||||
* in Compose preview functions.
|
||||
*/
|
||||
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(uiMode = Configuration.UI_MODE_NIGHT_NO)
|
||||
annotation class LightDarkPreview
|
Loading…
Reference in New Issue