Skip to content

Commit

Permalink
WTA #20: Updated LoginPageScreen previews.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob3075 committed Oct 16, 2022
1 parent e0edf66 commit 179853c
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jacob.wakatimeapp.login.ui

import android.content.Intent
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import android.content.res.Configuration
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.ActivityResult
Expand Down Expand Up @@ -208,7 +208,18 @@ private fun LoginButton(
}
}

@Preview(showBackground = true, uiMode = UI_MODE_NIGHT_YES)
@Preview(
apiLevel = 31,
showSystemUi = true,
showBackground = true,
uiMode = Configuration.UI_MODE_NIGHT_NO or Configuration.UI_MODE_TYPE_NORMAL,
)
@Preview(
apiLevel = 31,
showSystemUi = true,
showBackground = true,
uiMode = Configuration.UI_MODE_NIGHT_YES
)
@Composable
private fun LoginPagePreview(
@PreviewParameter(LoginPagePreviewProvider::class) state: LoginPageState,
Expand Down

0 comments on commit 179853c

Please sign in to comment.