File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
app/src/main/java/to/bitkit/ui/components Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ fun ToastView(
8181 .then(toast.testTag?.let { Modifier .testTag(it) } ? : Modifier ),
8282 ) {
8383 // Main toast content
84- val containerColor = MaterialTheme .colorScheme.surface.copy(alpha = 0.9f )
85- val toastMaterial = CupertinoMaterials .thin(containerColor = containerColor)
84+ val toastMaterial = CupertinoMaterials .thin(containerColor = tintColor)
8685
8786 Box (
8887 modifier = Modifier
@@ -94,15 +93,9 @@ fun ToastView(
9493 ambientColor = Color .Black .copy(alpha = 0.4f ),
9594 spotColor = Color .Black .copy(alpha = 0.4f )
9695 )
97- .background(
98- color = containerColor,
99- shape = MaterialTheme .shapes.medium
100- )
101- .then(
102- Modifier .hazeEffect(
103- state = hazeState,
104- style = toastMaterial
105- )
96+ .hazeEffect(
97+ state = hazeState,
98+ style = toastMaterial
10699 )
107100 .background(
108101 color = tintColor.copy(alpha = 0.32f ),
@@ -188,7 +181,7 @@ fun ToastView(
188181 toast.description?.let { description ->
189182 Caption (
190183 text = description,
191- color = MaterialTheme .colorScheme.onSurface
184+ color = Colors . White
192185 )
193186 }
194187 }
You can’t perform that action at this time.
0 commit comments