From 5002b167b2dd425a63a2f5b2b33f48d98a021f3f Mon Sep 17 00:00:00 2001 From: Filipe Belatti Date: Sat, 3 Feb 2024 11:55:27 +0000 Subject: [PATCH] Replace deprecated dividers --- .../pinboard/features/navigation/NavigationMenuScreen.kt | 6 +++--- .../features/notes/presentation/NoteDetailsScreen.kt | 4 ++-- .../features/posts/presentation/PostDescriptionDialog.kt | 4 ++-- .../pinboard/features/tags/presentation/TagManager.kt | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/com/fibelatti/pinboard/features/navigation/NavigationMenuScreen.kt b/app/src/main/kotlin/com/fibelatti/pinboard/features/navigation/NavigationMenuScreen.kt index 0a02f2d8..341288ca 100644 --- a/app/src/main/kotlin/com/fibelatti/pinboard/features/navigation/NavigationMenuScreen.kt +++ b/app/src/main/kotlin/com/fibelatti/pinboard/features/navigation/NavigationMenuScreen.kt @@ -10,7 +10,7 @@ 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.material3.Divider +import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text @@ -214,7 +214,7 @@ private fun NavigationMenuScreen( ) } - Divider( + HorizontalDivider( modifier = Modifier.padding(all = 16.dp), color = MaterialTheme.colorScheme.onSurface, ) @@ -233,7 +233,7 @@ private fun NavigationMenuScreen( ) } - Divider( + HorizontalDivider( modifier = Modifier.padding(all = 16.dp), color = MaterialTheme.colorScheme.onSurface, ) diff --git a/app/src/main/kotlin/com/fibelatti/pinboard/features/notes/presentation/NoteDetailsScreen.kt b/app/src/main/kotlin/com/fibelatti/pinboard/features/notes/presentation/NoteDetailsScreen.kt index 69415f67..8f101403 100644 --- a/app/src/main/kotlin/com/fibelatti/pinboard/features/notes/presentation/NoteDetailsScreen.kt +++ b/app/src/main/kotlin/com/fibelatti/pinboard/features/notes/presentation/NoteDetailsScreen.kt @@ -5,7 +5,7 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll -import androidx.compose.material3.Divider +import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text @@ -143,7 +143,7 @@ private fun NoteContent( ) } - Divider( + HorizontalDivider( modifier = Modifier.padding(vertical = 16.dp), color = MaterialTheme.colorScheme.onSurface, ) diff --git a/app/src/main/kotlin/com/fibelatti/pinboard/features/posts/presentation/PostDescriptionDialog.kt b/app/src/main/kotlin/com/fibelatti/pinboard/features/posts/presentation/PostDescriptionDialog.kt index b02f2974..8cb12a6b 100644 --- a/app/src/main/kotlin/com/fibelatti/pinboard/features/posts/presentation/PostDescriptionDialog.kt +++ b/app/src/main/kotlin/com/fibelatti/pinboard/features/posts/presentation/PostDescriptionDialog.kt @@ -6,7 +6,7 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll -import androidx.compose.material3.Divider +import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable @@ -68,7 +68,7 @@ private fun BookmarkDescriptionScreen( style = MaterialTheme.typography.bodyMedium, ) - Divider( + HorizontalDivider( modifier = Modifier.padding(top = 16.dp), color = MaterialTheme.colorScheme.onSurface, ) diff --git a/app/src/main/kotlin/com/fibelatti/pinboard/features/tags/presentation/TagManager.kt b/app/src/main/kotlin/com/fibelatti/pinboard/features/tags/presentation/TagManager.kt index 38f36a43..844a2563 100644 --- a/app/src/main/kotlin/com/fibelatti/pinboard/features/tags/presentation/TagManager.kt +++ b/app/src/main/kotlin/com/fibelatti/pinboard/features/tags/presentation/TagManager.kt @@ -6,8 +6,8 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions -import androidx.compose.material3.Divider import androidx.compose.material3.FilledTonalButton +import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.MaterialTheme import androidx.compose.material3.OutlinedTextField import androidx.compose.material3.Text @@ -144,7 +144,7 @@ fun TagManager( contentPadding = PaddingValues(horizontal = horizontalPadding), ) - Divider( + HorizontalDivider( modifier = Modifier.constrainAs(clDivider) { start.linkTo(parent.start, margin = horizontalPadding) top.linkTo(clSuggestedTags.bottom, margin = 8.dp)