Skip to content

Commit

Permalink
Replace deprecated dividers
Browse files Browse the repository at this point in the history
  • Loading branch information
fibelatti committed Feb 3, 2024
1 parent c99cc85 commit 5002b16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -214,7 +214,7 @@ private fun NavigationMenuScreen(
)
}

Divider(
HorizontalDivider(
modifier = Modifier.padding(all = 16.dp),
color = MaterialTheme.colorScheme.onSurface,
)
Expand All @@ -233,7 +233,7 @@ private fun NavigationMenuScreen(
)
}

Divider(
HorizontalDivider(
modifier = Modifier.padding(all = 16.dp),
color = MaterialTheme.colorScheme.onSurface,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -143,7 +143,7 @@ private fun NoteContent(
)
}

Divider(
HorizontalDivider(
modifier = Modifier.padding(vertical = 16.dp),
color = MaterialTheme.colorScheme.onSurface,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -68,7 +68,7 @@ private fun BookmarkDescriptionScreen(
style = MaterialTheme.typography.bodyMedium,
)

Divider(
HorizontalDivider(
modifier = Modifier.padding(top = 16.dp),
color = MaterialTheme.colorScheme.onSurface,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5002b16

Please sign in to comment.