@@ -8,7 +8,6 @@ import androidx.compose.material3.MaterialTheme
8
8
import androidx.compose.material3.Text
9
9
import androidx.compose.runtime.Composable
10
10
import androidx.compose.ui.Modifier
11
- import androidx.compose.ui.graphics.Color
12
11
import androidx.compose.ui.res.painterResource
13
12
import androidx.compose.ui.res.stringResource
14
13
import androidx.compose.ui.tooling.preview.Preview
@@ -40,7 +39,7 @@ fun ReportProblemNoEmail(resultBackNavigator: ResultBackNavigator<Boolean>) {
40
39
painter = painterResource(id = R .drawable.icon_alert),
41
40
contentDescription = null ,
42
41
modifier = Modifier .size(Dimens .dialogIconHeight),
43
- tint = Color . Unspecified
42
+ tint = MaterialTheme .colorScheme.error
44
43
)
45
44
},
46
45
text = {
@@ -52,17 +51,17 @@ fun ReportProblemNoEmail(resultBackNavigator: ResultBackNavigator<Boolean>) {
52
51
)
53
52
},
54
53
dismissButton = {
55
- NegativeButton (
54
+ PrimaryButton (
56
55
modifier = Modifier .fillMaxWidth(),
57
- onClick = dropUnlessResumed { resultBackNavigator.navigateBack(result = true ) },
58
- text = stringResource(id = R .string.send_anyway )
56
+ onClick = dropUnlessResumed { resultBackNavigator.navigateBack() },
57
+ text = stringResource(id = R .string.back )
59
58
)
60
59
},
61
60
confirmButton = {
62
- PrimaryButton (
61
+ NegativeButton (
63
62
modifier = Modifier .fillMaxWidth(),
64
- onClick = dropUnlessResumed { resultBackNavigator.navigateBack() },
65
- text = stringResource(id = R .string.back )
63
+ onClick = dropUnlessResumed { resultBackNavigator.navigateBack(result = true ) },
64
+ text = stringResource(id = R .string.send_anyway )
66
65
)
67
66
},
68
67
containerColor = MaterialTheme .colorScheme.background
0 commit comments