summaryrefslogtreecommitdiff
path: root/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-01-11 21:08:11 -0600
committerIván Ávalos <avalos@disroot.org>2023-01-26 12:18:54 -0600
commitc1684e6c3f6f131136efebcb2724e681b79aef6c (patch)
treee19785eb69929b8c594e06c24197f8fdde865f4d /wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt
parentc2a9681cd415e6d5b0a100b14624326a51d5a293 (diff)
downloadtaler-android-c1684e6c3f6f131136efebcb2724e681b79aef6c.tar.gz
taler-android-c1684e6c3f6f131136efebcb2724e681b79aef6c.tar.bz2
taler-android-c1684e6c3f6f131136efebcb2724e681b79aef6c.zip
[wallet] Experimental port to Material 3
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt')
-rw-r--r--wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt b/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt
index 27b04c8..bf7592d 100644
--- a/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt
+++ b/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushResultComposable.kt
@@ -24,11 +24,11 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
-import androidx.compose.material.Button
-import androidx.compose.material.CircularProgressIndicator
-import androidx.compose.material.MaterialTheme
-import androidx.compose.material.Surface
-import androidx.compose.material.Text
+import androidx.compose.material3.Button
+import androidx.compose.material3.CircularProgressIndicator
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Surface
+import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment.Companion.CenterHorizontally
import androidx.compose.ui.Modifier
@@ -55,7 +55,7 @@ fun OutgoingPushResultComposable(state: OutgoingState, onClose: () -> Unit) {
) {
Text(
modifier = Modifier.padding(top = 16.dp, start = 16.dp, end = 16.dp),
- style = MaterialTheme.typography.h6,
+ style = MaterialTheme.typography.titleLarge,
text = stringResource(id = R.string.send_peer_payment_instruction),
)
when (state) {
@@ -92,7 +92,7 @@ private fun ColumnScope.PeerPushResponseComposable(state: OutgoingResponse) {
) {
Text(
modifier = Modifier.padding(horizontal = 16.dp),
- style = MaterialTheme.typography.body1,
+ style = MaterialTheme.typography.bodyLarge,
text = stringResource(id = R.string.receive_peer_invoice_uri),
)
}
@@ -105,7 +105,7 @@ private fun ColumnScope.PeerPushErrorComposable(state: OutgoingError) {
.align(CenterHorizontally)
.padding(16.dp),
color = colorResource(R.color.red),
- style = MaterialTheme.typography.body1,
+ style = MaterialTheme.typography.bodyLarge,
text = state.info.userFacingMsg,
)
}