For #28201 - Make a LightDarkPreview annotation

Add LightDarkPreview annotation
This commit is contained in:
Harrison Oglesby 2022-12-19 13:47:15 -08:00 committed by mergify[bot]
parent 4f8c9c3e64
commit cab8c35568
1 changed files with 16 additions and 0 deletions

View File

@ -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