Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam committed May 1, 2024
1 parent f66b792 commit b2db4d4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
15 changes: 1 addition & 14 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fun HomeScreen(navController: NavController) {
) {
val showTapTargets = remember { mutableStateOf(false) }
LaunchedEffect(key1 = viewModel.showOnboardingTapTargets.value) {
delay(300) // Delay to prevent flickering
delay(800) // Delay to prevent flickering
showTapTargets.value = viewModel.showOnboardingTapTargets.value
}
TapTargetCoordinator(
Expand Down Expand Up @@ -221,13 +221,15 @@ fun HomeScreen(navController: NavController) {
) {
if (allGoalState.value.isEmpty()) {
var showNoGoalsAnimation by remember { mutableStateOf(false) }

LaunchedEffect(key1 = true, block = {
delay(200)
showNoGoalsAnimation = true
})

if (showNoGoalsAnimation) {
AnimatedVisibility(
visible = showNoGoalsAnimation,
enter = fadeIn(),
exit = fadeOut()
) {
NoGoalAnimation()
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import androidx.compose.ui.unit.dp
@Composable
fun PriorityIndicator(modifier: Modifier = Modifier, color: Color) {
val value by rememberInfiniteTransition(label = "value").animateFloat(
initialValue = 0.6f,
initialValue = 0.8f,
targetValue = 1f,
animationSpec = infiniteRepeatable(
animation = tween(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private fun LockIconCard() {
.clip(CircleShape)
.animateContentSize(),
colors = CardDefaults.cardColors(
containerColor = MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp)
containerColor = MaterialTheme.colorScheme.surfaceColorAtElevation(5.dp)
)
) {
Box(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ private fun ThemeBottomSheet(
Row(
modifier = Modifier
.fillMaxWidth()
.padding(top = 4.dp, bottom = 20.dp, end = 14.dp)
.padding(top = 8.dp, bottom = 20.dp, end = 14.dp)
) {
Spacer(modifier = Modifier.weight(1f))
TextButton(onClick = {
Expand Down

0 comments on commit b2db4d4

Please sign in to comment.