Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add "Donate" button in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jun 11, 2022
1 parent bed2401 commit f6cb3b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.lifecycle.viewmodel.compose.viewModel
import coil.compose.AsyncImage
import com.google.accompanist.insets.navigationBarsPadding
import com.google.accompanist.insets.statusBarsPadding
import com.ivy.design.l0_system.SunsetNight
import com.ivy.design.l0_system.UI
import com.ivy.design.l0_system.style
import com.ivy.design.l1_buildingBlocks.IconScale
Expand Down Expand Up @@ -153,7 +154,7 @@ private fun BoxWithConstraintsScope.UI(
onDeleteAllUserData: () -> Unit = {},
onDeleteCloudUserData: () -> Unit = {},

) {
) {
var currencyModalVisible by remember { mutableStateOf(false) }
var nameModalVisible by remember { mutableStateOf(false) }
var chooseStartDateOfMonthVisible by remember { mutableStateOf(false) }
Expand Down Expand Up @@ -356,7 +357,7 @@ private fun BoxWithConstraintsScope.UI(
icon = R.drawable.ic_donate_crown,
text = "Donate",
iconPadding = 8.dp,
backgroundGradient = Gradient.solid(Orange2)
backgroundGradient = Gradient(SunsetNight.startColor, SunsetNight.endColor)
) {
nav.navigateTo(DonateScreen)
}
Expand Down Expand Up @@ -412,7 +413,7 @@ private fun BoxWithConstraintsScope.UI(
deleteAllDataModalVisible = true
}

if(user != null){
if (user != null) {
Spacer(Modifier.height(16.dp))

SettingsPrimaryButton(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ val GradientOrange = Gradient(Orange, OrangeLight)
val GradientOrangeDark = Gradient(OrangeDark, Color(0xFFF2CD9E))
val GradientOrangeRevert = Gradient(Color(0xFFF2CD9E), Orange)
val GradientPurple = Gradient(Purple, Color(0xFFAA99FF))
val SunsetNight = Gradient(Red, Orange)

@Composable
fun pureBlur() = UI.colors.pure.copy(alpha = 0.95f)
Expand Down

0 comments on commit f6cb3b3

Please sign in to comment.