Skip to content

Commit

Permalink
refactor: Redesign payment screen (openMF#1773)
Browse files Browse the repository at this point in the history
* refactor: Redesign payment screen

* resolved detekt error

* refactor : changed current theme instead of using NewUi

* resolved spotless errors
  • Loading branch information
Nagarjuna0033 authored and niyajali committed Nov 6, 2024
1 parent c0845b7 commit 150698f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build-logic/convention/src/main/kotlin/org/mifospay/Detekt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.named
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

internal fun Project.configureDetekt(extension: DetektExtension) = extension.apply {
tasks.named<Detekt>("detekt") {
jvmTarget = "17"
reports {
xml.required.set(true)
html.required.set(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import org.mifospay.core.designsystem.theme.NewUi

@Composable
fun ProfileDetailsCard(
Expand All @@ -45,7 +44,7 @@ fun ProfileDetailsCard(
),
shape = RoundedCornerShape(15.dp),
colors = CardDefaults.cardColors(
containerColor = NewUi.containerColor,
containerColor = MaterialTheme.colorScheme.primaryContainer,
),
) {
Column(
Expand Down Expand Up @@ -79,7 +78,7 @@ fun ProfileItem(
) {
Text(
text = label,
color = NewUi.primaryColor,
color = MaterialTheme.colorScheme.primary,
style = MaterialTheme.typography.labelLarge,
)
Spacer(modifier = Modifier.height(10.dp))
Expand All @@ -92,7 +91,7 @@ fun ProfileItem(
Spacer(modifier = Modifier.height(4.dp))
HorizontalDivider(
thickness = 1.dp,
color = NewUi.onSurface.copy(alpha = 0.05f),
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.05f),
)
}
}

0 comments on commit 150698f

Please sign in to comment.