Skip to content

Commit

Permalink
style: Rename angleDegree into highlightAngleDegree for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Nov 29, 2024
1 parent eceab33 commit c08a4b5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private fun TitleAndDescription(page: Page, isHighlighted: () -> Boolean) {
templateRes = page.subtitleTemplateRes,
argumentRes = page.subtitleArgumentRes,
style = SwissTransferTheme.typography.h1,
angleDegrees = page.angleDegree,
angleDegrees = page.highlightAngleDegree,
isHighlighted = isHighlighted,
)
}
Expand All @@ -146,31 +146,31 @@ private enum class Page(
@StringRes val titleRes: Int,
@StringRes val subtitleTemplateRes: Int,
@StringRes val subtitleArgumentRes: Int,
val angleDegree: Double,
val highlightAngleDegree: Double,
) {
STORAGE(
background = AppIllus.RadialGradientCornerTopRight,
illustration = AppIllus.StorageBoxPile,
titleRes = R.string.onboardingStorageTitle,
subtitleTemplateRes = R.string.onboardingStorageSubtitleTemplate,
subtitleArgumentRes = R.string.onboardingStorageSubtitleArgument,
angleDegree = -3.0,
highlightAngleDegree = -3.0,
),
EXPIRATION(
background = AppIllus.RadialGradientCornerTopLeft,
illustration = AppIllus.ThreeCardsTransferType,
titleRes = R.string.onboardingExpirationTitle,
subtitleTemplateRes = R.string.onboardingExpirationSubtitleTemplate,
subtitleArgumentRes = R.string.onboardingExpirationSubtitleArgument,
angleDegree = -3.0,
highlightAngleDegree = -3.0,
),
PASSWORD(
background = AppIllus.RadialGradientCornerTopRight,
illustration = AppIllus.TwoPadlocksIntertwinedStars,
titleRes = R.string.onboardingPasswordTitle,
subtitleTemplateRes = R.string.onboardingPasswordSubtitleTemplate,
subtitleArgumentRes = R.string.onboardingPasswordSubtitleArgument,
angleDegree = 3.0,
highlightAngleDegree = 3.0,
),
}

Expand Down

0 comments on commit c08a4b5

Please sign in to comment.