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

Commit

Permalink
feat: create feature button at settings page (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
letsaguiar authored Aug 4, 2024
1 parent 67dbe66 commit d3e475a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions screen/settings/src/main/java/com/ivy/settings/SettingsScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import com.ivy.legacy.utils.drawColoredShadow
import com.ivy.navigation.AttributionsScreen
import com.ivy.navigation.ContributorsScreen
import com.ivy.navigation.ExchangeRatesScreen
import com.ivy.navigation.FeaturesScreen
import com.ivy.navigation.ImportScreen
import com.ivy.navigation.Navigation
import com.ivy.navigation.ReleasesScreen
Expand Down Expand Up @@ -377,6 +378,12 @@ private fun BoxWithConstraintsScope.UI(
) {
chooseStartDateOfMonthVisible = true
}

Spacer(Modifier.height(12.dp))

CustomFeatures(
onClick = { nav.navigateTo(FeaturesScreen) }
)
}

// item {
Expand Down Expand Up @@ -609,6 +616,35 @@ private fun StartDateOfMonth(
}
}

@Composable
private fun CustomFeatures(
onClick: () -> Unit
) {
SettingsButtonRow(
onClick = onClick
) {
Spacer(Modifier.width(12.dp))

IvyIconScaled(
icon = R.drawable.ic_custom_programming_m,
tint = UI.colors.pureInverse,
iconScale = IconScale.M,
padding = 0.dp
)

Spacer(modifier = Modifier.width(8.dp))

Text(
modifier = Modifier.padding(vertical = 20.dp),
text = stringResource(R.string.advanced_features),
style = UI.typo.b2.style(
color = UI.colors.pureInverse,
fontWeight = FontWeight.Bold
)
)
}
}

@Composable
private fun IvyTelegram() {
val rootActivity = rootScreen()
Expand Down
1 change: 1 addition & 0 deletions shared/ui/core/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -489,5 +489,6 @@
<string name="warning_import_csv_file">"\n!!!⚠️AVISO: A importação pode duplicar transações!!!\nTransações duplicadas NÃO podem ser excluídas facilmente e você precisará remover manualmente cada uma delas! \nMotivo: podemos Não analisamos IDs de transação porque o Ivy Wallet funciona apenas com UUID e outros aplicativos não.\nSe você está começando do zero, não se preocupe. Por favor, ignore esta mensagem."</string>
<string name="select_tags">Selecionar tags</string>
<string name="language">Linguagem</string>
<string name="advanced_features">Configurações avançadas</string>
<string name="budget_exceeded_info">Orçamento excedido por %1$s %2$s</string>
</resources>
1 change: 1 addition & 0 deletions shared/ui/core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,5 @@
<string name="select_tags">Select Tags</string>
<string name="bill_paid">Your bill for %1$s %2$s has been paid</string>
<string name="language">Language</string>
<string name="advanced_features">Advanced features</string>
</resources>

0 comments on commit d3e475a

Please sign in to comment.