Skip to content

Commit

Permalink
Merge pull request #1276 from radixdlt/task/add-xsmall-dimension
Browse files Browse the repository at this point in the history
Add xsmall dimension
  • Loading branch information
giannis-rdx authored Dec 10, 2024
2 parents 4b68086 + 67ce433 commit 4e7cec5
Show file tree
Hide file tree
Showing 52 changed files with 86 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private fun AccountHeader(
Row(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = RadixTheme.dimensions.paddingXSmall),
.padding(horizontal = RadixTheme.dimensions.paddingXXSmall),
horizontalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingDefault)
) {
if (accountAddress != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun HistoryFilterTag(
)
.applyIf(selected, tagSelectedModifier)
.applyIf(!selected, tagBorderModifier),
horizontalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXSmall),
horizontalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXXSmall),
verticalAlignment = Alignment.CenterVertically
) {
leadingIcon?.invoke()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ fun MetadataValueView(
}
Icon(
modifier = Modifier
.padding(start = RadixTheme.dimensions.paddingXSmall)
.padding(start = RadixTheme.dimensions.paddingXXSmall)
.size(iconSize),
painter = painterResource(id = com.babylon.wallet.android.designsystem.R.drawable.ic_copy),
contentDescription = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private fun BottomSheet(
) {
IconButton(
modifier = Modifier.padding(
start = RadixTheme.dimensions.paddingXSmall,
start = RadixTheme.dimensions.paddingXXSmall,
top = RadixTheme.dimensions.paddingMedium
),
onClick = onClose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private fun DeletingAccountMoveAssetsContent(
modifier = Modifier
.padding(
horizontal = RadixTheme.dimensions.paddingLarge,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
)
.background(
account.appearanceId.gradient(alpha = if (isEnabled) 1f else 0.3f),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private fun FullAddress(
contentDescription = null,
tint = RadixTheme.colors.gray1
)
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))
Text(
text = stringResource(id = R.string.addressDetails_copy),
style = RadixTheme.typography.body1Header
Expand All @@ -287,7 +287,7 @@ private fun FullAddress(
contentDescription = null,
tint = RadixTheme.colors.gray1
)
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))
Text(
text = stringResource(id = R.string.addressDetails_enlarge),
style = RadixTheme.typography.body1Header
Expand All @@ -305,7 +305,7 @@ private fun FullAddress(
contentDescription = null,
tint = RadixTheme.colors.gray1
)
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))
Text(
text = stringResource(id = R.string.addressDetails_share),
style = RadixTheme.typography.body1Header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fun DescriptionSection(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = RadixTheme.dimensions.paddingSmall)
.padding(top = RadixTheme.dimensions.paddingXSmall),
.padding(top = RadixTheme.dimensions.paddingXXSmall),
url = infoUrl
)
}
Expand Down Expand Up @@ -393,7 +393,7 @@ fun TagsSection(
tags.forEach { tag ->
Tag(
modifier = Modifier
.padding(RadixTheme.dimensions.paddingXSmall)
.padding(RadixTheme.dimensions.paddingXXSmall)
.border(
width = 1.dp,
color = RadixTheme.colors.gray4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fun FungibleDialogContent(
if (isLoadingBalance) {
ShimmeringView(
modifier = Modifier
.padding(top = RadixTheme.dimensions.paddingXXSmall)
.padding(top = RadixTheme.dimensions.paddingXXXSmall)
.height(12.dp)
.fillMaxWidth(0.2f),
isVisible = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private fun LSUResourceValue(
if (isLoadingBalance) {
ShimmeringView(
modifier = Modifier
.padding(top = RadixTheme.dimensions.paddingXXSmall)
.padding(top = RadixTheme.dimensions.paddingXXXSmall)
.height(12.dp)
.fillMaxWidth(0.3f),
isVisible = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ private fun PreAuthorizationId(
color = RadixTheme.colors.gray1
)

Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))

Row(
modifier = Modifier.throttleClickable { onClick() },
Expand All @@ -259,7 +259,7 @@ private fun PreAuthorizationId(
style = RadixTheme.typography.body1HighImportance
)

Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))

Icon(
modifier = Modifier.size(14.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private fun RestoredProfileListItem(
Column(
modifier = Modifier
.weight(1f)
.padding(start = RadixTheme.dimensions.paddingXSmall)
.padding(start = RadixTheme.dimensions.paddingXXSmall)
) {
Text(
text = stringResource(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private fun BackupStatusCard(
color = RadixTheme.colors.gray1,
style = RadixTheme.typography.body1Regular
)
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
BackupStatusSection(
title = stringResource(id = R.string.configurationBackup_automated_accountsItemTitle),
subtitle = stringResource(id = R.string.configurationBackup_automated_accountsItemSubtitle),
Expand Down Expand Up @@ -591,7 +591,7 @@ private fun ExportWalletBackupFileDialog(
.clickable(role = Role.Button) { onConfirm(true) }
.padding(
horizontal = RadixTheme.dimensions.paddingSmall,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
),
text = stringResource(id = R.string.profileBackup_manualBackups_encryptBackupDialogConfirm),
color = RadixTheme.colors.red1
Expand All @@ -602,7 +602,7 @@ private fun ExportWalletBackupFileDialog(
.clickable(role = Role.Button) { onConfirm(false) }
.padding(
horizontal = RadixTheme.dimensions.paddingSmall,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
),
text = stringResource(id = R.string.profileBackup_manualBackups_encryptBackupDialogDeny),
color = RadixTheme.colors.red1
Expand All @@ -615,7 +615,7 @@ private fun ExportWalletBackupFileDialog(
.clickable(role = Role.Button) { onDeny() }
.padding(
horizontal = RadixTheme.dimensions.paddingSmall,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
),
text = stringResource(id = R.string.common_cancel),
color = RadixTheme.colors.blue2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ fun SeedPhraseCard(
)
}
if (data.mnemonicState == DeviceFactorSourceWithEntities.MnemonicState.NotBackedUp) {
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
WarningText(
text = AnnotatedString(stringResource(id = R.string.securityProblems_no3_seedPhrases)),
contentColor = RadixTheme.colors.orange1
)
}
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
if (data.hasOnlyHiddenAccounts) {
Text(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private fun SeedPhraseRow(

@Composable
private fun SingleWord(label: String, word: String, modifier: Modifier = Modifier) {
Column(modifier = modifier, verticalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXSmall)) {
Column(modifier = modifier, verticalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXXSmall)) {
Text(
text = label,
style = RadixTheme.typography.body1HighImportance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ fun SeedPhraseCard(
)
}
if (data.allAccounts.isNotEmpty()) {
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
data.allAccounts.forEach { account ->
SimpleAccountCard(
modifier = Modifier.fillMaxWidth(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ private fun VerifyWithYourSeedPhrasePage(
modifier = Modifier.fillMaxWidth(),
text = AnnotatedString(stringResource(R.string.importOlympiaAccounts_verifySeedPhrase_warning))
)
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
SeedPhraseInputForm(
seedPhraseWords = seedPhraseWords,
onWordChanged = onWordChanged,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun LegacyAccountCard(
style = RadixTheme.typography.secondaryHeader,
color = Color.White
)
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))
Text(
text = stringResource(
id = when (accountType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private fun DeleteWalletDialog(
.clickable(role = Role.Button) { onConfirm() }
.padding(
horizontal = RadixTheme.dimensions.paddingSmall,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
),
text = stringResource(id = R.string.common_confirm),
color = RadixTheme.colors.red1
Expand All @@ -243,7 +243,7 @@ private fun DeleteWalletDialog(
.clickable(role = Role.Button) { onDeny() }
.padding(
horizontal = RadixTheme.dimensions.paddingSmall,
vertical = RadixTheme.dimensions.paddingXSmall
vertical = RadixTheme.dimensions.paddingXXSmall
),
text = stringResource(id = R.string.common_cancel),
color = RadixTheme.colors.blue2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fun RatingContainer(

Box(
modifier = Modifier
.padding(RadixTheme.dimensions.paddingXSmall)
.padding(RadixTheme.dimensions.paddingXXSmall)
.clip(CircleShape)
.border(1.dp, Color.Black, CircleShape)
.size(45.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private fun TransactionPreviewContent(
contentDescription = "copy"
)
Text(
modifier = Modifier.padding(start = RadixTheme.dimensions.paddingXSmall),
modifier = Modifier.padding(start = RadixTheme.dimensions.paddingXXSmall),
text = stringResource(R.string.common_copy),
style = RadixTheme.typography.body1Header
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private fun SectionHeader(modifier: Modifier = Modifier, text: String) {
modifier = Modifier
.size(24.dp)
.dashedCircleBorder(RadixTheme.colors.gray3)
.padding(RadixTheme.dimensions.paddingXSmall),
.padding(RadixTheme.dimensions.paddingXXSmall),
painter = painterResource(
id = DSR.ic_deposit_changes_heading
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private fun AmountText(

symbol?.let {
Text(
modifier = Modifier.padding(bottom = RadixTheme.dimensions.paddingXXSmall),
modifier = Modifier.padding(bottom = RadixTheme.dimensions.paddingXXXSmall),
text = it,
style = symbolStyle,
color = symbolColor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun DepositAccountContent(
if (hasCustomisableGuarantees) {
RadixTextButton(
modifier = Modifier
.padding(top = RadixTheme.dimensions.paddingXSmall),
.padding(top = RadixTheme.dimensions.paddingXXSmall),
text = stringResource(id = R.string.interactionReview_customizeGuaranteesButtonTitle),
onClick = onEditGuaranteesClick
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private fun FeePayerSelectionContent(
Box {
IconButton(
modifier = Modifier.padding(
start = RadixTheme.dimensions.paddingXSmall,
start = RadixTheme.dimensions.paddingXXSmall,
top = RadixTheme.dimensions.paddingMedium
),
onClick = onClose
Expand Down Expand Up @@ -258,7 +258,7 @@ private fun FeePayerCard(
maxLines = 2
)

Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))

RadixRadioButton(
selected = candidate.account.address == selectedCandidateAddress,
Expand All @@ -272,7 +272,7 @@ private fun FeePayerCard(
}

if (!candidate.hasEnoughBalance) {
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))

WarningText(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fun NetworkFeeContent(
style = RadixTheme.typography.body1Link,
color = RadixTheme.colors.gray2
)
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.width(RadixTheme.dimensions.paddingXXSmall))
InfoButton(
modifier = Modifier
.fillMaxHeight()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fun PresentingProofsContent(
vertical = RadixTheme.dimensions.paddingSmall
)
.height(intrinsicSize = IntrinsicSize.Min),
horizontalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXSmall)
horizontalArrangement = Arrangement.spacedBy(RadixTheme.dimensions.paddingXXSmall)
) {
Text(
text = stringResource(id = R.string.interactionReview_presentingHeading).uppercase(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fun TransactionPreviewHeader(
}

if (someDApp != null) {
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXSmall))
Spacer(modifier = Modifier.height(RadixTheme.dimensions.paddingXXSmall))

Row(
verticalAlignment = Alignment.CenterVertically
Expand Down
Loading

0 comments on commit 4e7cec5

Please sign in to comment.