Skip to content

Commit a161a56

Browse files
committed
fix(withdraw): update colors in flow to match new theme
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 4a9aa7f commit a161a56

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

apps/flipcash/core/src/main/res/drawable/ic_checked_green.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<path
77
android:strokeWidth="1"
88
android:pathData="M13,13m-12,0a12,12 0,1 1,24 0a12,12 0,1 1,-24 0"
9-
android:fillColor="#FF3FE159"
10-
android:strokeColor="#FF3FE159"/>
9+
android:fillColor="#1AC86A"
10+
android:strokeColor="#1AC86A"/>
1111
<path
1212
android:pathData="M8.4145,11.9495l4.2426,4.2426l-1.4142,1.4142l-4.2426,-4.2426z"
1313
android:fillColor="#000"/>

apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/internal/components/DestinationBox.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.compose.ui.Modifier
1212
import androidx.compose.ui.graphics.Color
1313
import androidx.compose.ui.text.style.TextAlign
1414
import com.getcode.theme.CodeTheme
15+
import com.getcode.theme.White05
1516

1617
@Composable
1718
internal fun DestinationBox(
@@ -26,7 +27,7 @@ internal fun DestinationBox(
2627
color = CodeTheme.colors.border,
2728
shape = CodeTheme.shapes.medium
2829
)
29-
.background(Color(0xFF071F10), CodeTheme.shapes.medium)
30+
.background(White05, CodeTheme.shapes.medium)
3031
.padding(CodeTheme.dimens.grid.x4)
3132
.then(modifier),
3233
contentAlignment = Alignment.Center

apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/internal/components/TransactionReceipt.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import androidx.compose.foundation.clickable
77
import androidx.compose.foundation.layout.Arrangement
88
import androidx.compose.foundation.layout.Column
99
import androidx.compose.foundation.layout.PaddingValues
10-
import androidx.compose.foundation.layout.Row
1110
import androidx.compose.foundation.layout.fillMaxSize
1211
import androidx.compose.foundation.layout.fillMaxWidth
1312
import androidx.compose.foundation.layout.padding
@@ -51,6 +50,7 @@ import com.getcode.opencode.model.financial.TokenWithBalance
5150
import com.getcode.opencode.model.financial.minus
5251
import com.getcode.opencode.model.financial.usdf
5352
import com.getcode.theme.CodeTheme
53+
import com.getcode.theme.White05
5454
import com.getcode.theme.bolded
5555
import com.getcode.utils.network.LocalNetworkObserver
5656
import com.getcode.utils.network.NetworkObserverStub
@@ -70,7 +70,7 @@ internal fun TransactionReceipt(
7070
color = CodeTheme.colors.border,
7171
shape = CodeTheme.shapes.medium
7272
)
73-
.background(Color(0xFF071F10), CodeTheme.shapes.medium)
73+
.background(White05, CodeTheme.shapes.medium)
7474
.padding(
7575
horizontal = CodeTheme.dimens.grid.x4,
7676
vertical = CodeTheme.dimens.grid.x8

apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/internal/confirmation/WithdrawalConfirmationScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ private fun WithdrawalConfirmationScreenContent(
115115
.padding(bottom = CodeTheme.dimens.grid.x3),
116116
text = stringResource(R.string.action_withdraw),
117117
buttonState = ButtonState.Filled,
118+
enabled = state.withdrawalState.isIdle,
118119
isLoading = state.withdrawalState.loading,
119120
isSuccess = state.withdrawalState.success,
120121
) {

0 commit comments

Comments
 (0)