Design updates
This commit is contained in:
parent
720c2f82ca
commit
c4149ca519
|
@ -1,5 +1,6 @@
|
||||||
package co.electriccoin.zcash.ui.screen.error
|
package co.electriccoin.zcash.ui.screen.error
|
||||||
|
|
||||||
|
import androidx.compose.foundation.Image
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
@ -10,8 +11,10 @@ import androidx.compose.material3.SheetState
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
|
import co.electriccoin.zcash.ui.R
|
||||||
import co.electriccoin.zcash.ui.design.component.ButtonState
|
import co.electriccoin.zcash.ui.design.component.ButtonState
|
||||||
import co.electriccoin.zcash.ui.design.component.Spacer
|
import co.electriccoin.zcash.ui.design.component.Spacer
|
||||||
import co.electriccoin.zcash.ui.design.component.ZashiButton
|
import co.electriccoin.zcash.ui.design.component.ZashiButton
|
||||||
|
@ -48,6 +51,11 @@ fun BottomSheetContent(state: ErrorState, modifier: Modifier = Modifier) {
|
||||||
.verticalScroll(rememberScrollState())
|
.verticalScroll(rememberScrollState())
|
||||||
.padding(horizontal = 24.dp)
|
.padding(horizontal = 24.dp)
|
||||||
) {
|
) {
|
||||||
|
Image(
|
||||||
|
painter = painterResource(R.drawable.ic_error_warning),
|
||||||
|
contentDescription = null
|
||||||
|
)
|
||||||
|
Spacer(12.dp)
|
||||||
Text(
|
Text(
|
||||||
text = state.title.getValue(),
|
text = state.title.getValue(),
|
||||||
color = ZashiColors.Text.textPrimary,
|
color = ZashiColors.Text.textPrimary,
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="40dp"
|
||||||
|
android:height="40dp"
|
||||||
|
android:viewportWidth="40"
|
||||||
|
android:viewportHeight="40">
|
||||||
|
<path
|
||||||
|
android:pathData="M0,20C0,8.954 8.954,0 20,0C31.046,0 40,8.954 40,20C40,31.046 31.046,40 20,40C8.954,40 0,31.046 0,20Z"
|
||||||
|
android:fillColor="#454243"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M20,17.5V20.833M20,24.167H20.008M18.846,13.243L11.992,25.082C11.611,25.739 11.421,26.067 11.45,26.337C11.474,26.572 11.597,26.785 11.788,26.924C12.007,27.083 12.387,27.083 13.146,27.083H26.854C27.612,27.083 27.992,27.083 28.211,26.924C28.402,26.785 28.525,26.572 28.55,26.337C28.578,26.067 28.388,25.739 28.008,25.082L21.153,13.243C20.775,12.589 20.585,12.262 20.338,12.152C20.123,12.056 19.877,12.056 19.661,12.152C19.414,12.262 19.225,12.589 18.846,13.243Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.66667"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#E8E8E8"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="40dp"
|
||||||
|
android:height="40dp"
|
||||||
|
android:viewportWidth="40"
|
||||||
|
android:viewportHeight="40">
|
||||||
|
<path
|
||||||
|
android:pathData="M0,20C0,8.954 8.954,0 20,0C31.046,0 40,8.954 40,20C40,31.046 31.046,40 20,40C8.954,40 0,31.046 0,20Z"
|
||||||
|
android:fillColor="#EBEBE6"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M20,17.5V20.833M20,24.167H20.008M18.846,13.243L11.992,25.082C11.612,25.739 11.422,26.067 11.45,26.337C11.474,26.572 11.597,26.785 11.788,26.924C12.007,27.083 12.387,27.083 13.146,27.083H26.854C27.613,27.083 27.992,27.083 28.211,26.924C28.402,26.785 28.525,26.572 28.55,26.337C28.578,26.067 28.388,25.739 28.008,25.082L21.154,13.243C20.775,12.589 20.585,12.262 20.338,12.152C20.123,12.056 19.877,12.056 19.661,12.152C19.414,12.262 19.225,12.589 18.846,13.243Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.66667"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#282622"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
|
@ -3,7 +3,7 @@
|
||||||
<string name="error_general_title">An error occurred</string>
|
<string name="error_general_title">An error occurred</string>
|
||||||
<string name="error_general_message">Unknown cause. Please contact our support team if the problem persists
|
<string name="error_general_message">Unknown cause. Please contact our support team if the problem persists
|
||||||
.</string>
|
.</string>
|
||||||
<string name="error_sync_title">Error during sync</string>
|
<string name="error_sync_title">Syncing error</string>
|
||||||
<string name="error_shielding_title">Shielding error</string>
|
<string name="error_shielding_title">Shielding error</string>
|
||||||
<string name="error_shielding_message">An error happened during the last shielding transaction. You can try again
|
<string name="error_shielding_message">An error happened during the last shielding transaction. You can try again
|
||||||
later or report this issue if the problem persists.\n\n%s</string>
|
later or report this issue if the problem persists.\n\n%s</string>
|
||||||
|
|
Loading…
Reference in New Issue