Skip to content

Commit

Permalink
Delete weird animation when changing present theme (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianabdl authored Oct 14, 2024
1 parent 1f97c66 commit f926a26
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,11 @@ fun AppearanceSettingScreen(
ThemeItem(
theme,
onClick = { theme ->
scope.launch {
vm.colorTheme.value = theme.id
repeat(3) { _ ->
customizedColors.primaryState.value = theme.materialColors.primary
customizedColors.secondaryState.value =
theme.materialColors.secondary
customizedColors.barsState.value = theme.extraColors.bars
delay(1000)
}


vm.isSavable = false
}
vm.colorTheme.value = theme.id
customizedColors.primaryState.value = theme.materialColors.primary
customizedColors.secondaryState.value = theme.materialColors.secondary
customizedColors.barsState.value = theme.extraColors.bars
vm.isSavable = false
},
isSelected = vm.colorTheme.value == theme.id,
)
Expand Down

0 comments on commit f926a26

Please sign in to comment.