Skip to content

Commit

Permalink
AboutScreen: Undeprecate Divider and Automirror back arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto97 committed Feb 25, 2024
1 parent 7c9b0b1 commit 9504e06
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material.icons.rounded.Android
import androidx.compose.material.icons.rounded.Favorite
Expand Down Expand Up @@ -69,7 +69,7 @@ fun AboutScreen(
title = { Text(stringResource(R.string.settings_title)) },
navigationIcon = {
IconButton(onClick = { onBackClick() }) {
Icon(Icons.Filled.ArrowBack, contentDescription = null)
Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = null)
}
},
)
Expand All @@ -94,7 +94,7 @@ fun AboutScreen(
if (supportedDynamicTheme)
Settings(useDynamicTheme, toggleDynamicTheme)

Divider(color = Color.LightGray)
HorizontalDivider(color = Color.LightGray)
ListItem(
leadingContent = {},
headlineContent = {
Expand All @@ -121,7 +121,7 @@ fun AboutScreen(
headlineContent = { Text(stringResource(R.string.about_last_db_update)) },
supportingContent = { Text(lastDbUpdate) },
)
Divider(color = Color.LightGray)
HorizontalDivider(color = Color.LightGray)
ListItem(
leadingContent = { UpdateInfoIcon() },
headlineContent = {},
Expand Down Expand Up @@ -151,7 +151,7 @@ private fun ListIcon(child: @Composable () -> Unit) {
@Composable
private fun Settings(useDynamicTheme: Boolean, toggleDynamicTheme: () -> Unit) {
Column {
Divider(color = Color.LightGray)
HorizontalDivider(color = Color.LightGray)
ListItem(
leadingContent = {},
headlineContent = {
Expand Down

0 comments on commit 9504e06

Please sign in to comment.