mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: replace light/dark mode previews with @PreviewLightDark
This commit is contained in:
parent
8dad5a085e
commit
d8ef392ddd
7 changed files with 15 additions and 27 deletions
|
|
@ -25,7 +25,7 @@ import androidx.compose.ui.platform.LocalFocusManager
|
|||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.input.ImeAction
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.tooling.preview.PreviewLightDark
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.geeksville.mesh.R
|
||||
import com.geeksville.mesh.ui.theme.AppTheme
|
||||
|
|
@ -84,9 +84,8 @@ fun NodeFilterTextField(
|
|||
)
|
||||
}
|
||||
|
||||
@PreviewLightDark
|
||||
@Composable
|
||||
@Preview(uiMode = android.content.res.Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(uiMode = android.content.res.Configuration.UI_MODE_NIGHT_NO)
|
||||
fun NodeFilterTextFieldPreview() {
|
||||
AppTheme {
|
||||
Box(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue