mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Utilize ImageVector instead of Painter in SettingsScaffold.
This commit is contained in:
@@ -56,7 +56,6 @@ import androidx.compose.ui.platform.LocalConfiguration
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.platform.LocalHapticFeedback
|
||||
import androidx.compose.ui.platform.LocalLayoutDirection
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.pluralStringResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.res.vectorResource
|
||||
@@ -313,7 +312,7 @@ private fun TopAppBar(
|
||||
Scaffolds.DefaultTopAppBar(
|
||||
title = stringResource(R.string.StickerManagement_title_stickers),
|
||||
titleContent = { _, title -> Text(text = title, style = MaterialTheme.typography.titleLarge) },
|
||||
navigationIconPainter = painterResource(R.drawable.symbol_arrow_start_24),
|
||||
navigationIcon = ImageVector.vectorResource(R.drawable.symbol_arrow_start_24),
|
||||
navigationContentDescription = stringResource(R.string.DefaultTopAppBar__navigate_up_content_description),
|
||||
onNavigationClick = onBackPress,
|
||||
actions = {
|
||||
@@ -365,7 +364,7 @@ private fun MultiSelectTopAppBar(
|
||||
Scaffolds.DefaultTopAppBar(
|
||||
title = pluralStringResource(R.plurals.StickerManagement_title_n_selected, selectedItemCount, NumberFormat.getInstance().format(selectedItemCount)),
|
||||
titleContent = { _, title -> Text(text = title, style = MaterialTheme.typography.titleLarge) },
|
||||
navigationIconPainter = painterResource(R.drawable.symbol_x_24),
|
||||
navigationIcon = ImageVector.vectorResource(R.drawable.symbol_x_24),
|
||||
navigationContentDescription = stringResource(R.string.StickerManagement_accessibility_exit_multi_select_mode),
|
||||
onNavigationClick = onExitClick
|
||||
)
|
||||
|
||||
@@ -227,7 +227,7 @@ private fun TopAppBar(
|
||||
Scaffolds.DefaultTopAppBar(
|
||||
title = "", // TODO collapse title into top app bar on scroll
|
||||
titleContent = { _, text -> Text(text = text, style = MaterialTheme.typography.titleLarge) },
|
||||
navigationIconPainter = painterResource(R.drawable.symbol_arrow_start_24),
|
||||
navigationIcon = ImageVector.vectorResource(R.drawable.symbol_arrow_start_24),
|
||||
navigationContentDescription = stringResource(R.string.DefaultTopAppBar__navigate_up_content_description),
|
||||
onNavigationClick = onNavigateUp,
|
||||
actions = {
|
||||
|
||||
Reference in New Issue
Block a user