|
@@ -20,11 +20,8 @@ import androidx.compose.material.icons.outlined.Search
|
|
|
import androidx.compose.material.icons.outlined.Security
|
|
|
import androidx.compose.material.icons.outlined.SettingsBackupRestore
|
|
|
import androidx.compose.material.icons.outlined.Sync
|
|
|
-import androidx.compose.material3.IconButton
|
|
|
import androidx.compose.material3.LocalContentColor
|
|
|
import androidx.compose.material3.MaterialTheme
|
|
|
-import androidx.compose.material3.Text
|
|
|
-import androidx.compose.material3.TopAppBar
|
|
|
import androidx.compose.material3.TopAppBarDefaults
|
|
|
import androidx.compose.material3.rememberTopAppBarState
|
|
|
import androidx.compose.runtime.Composable
|
|
@@ -44,7 +41,6 @@ import cafe.adriel.voyager.navigator.Navigator
|
|
|
import cafe.adriel.voyager.navigator.currentOrThrow
|
|
|
import eu.kanade.presentation.components.AppBar
|
|
|
import eu.kanade.presentation.components.AppBarActions
|
|
|
-import eu.kanade.presentation.components.UpIcon
|
|
|
import eu.kanade.presentation.more.settings.screen.about.AboutScreen
|
|
|
import eu.kanade.presentation.more.settings.widget.TextPreferenceWidget
|
|
|
import eu.kanade.presentation.util.LocalBackPress
|
|
@@ -82,21 +78,13 @@ object SettingsMainScreen : Screen() {
|
|
|
val backPress = LocalBackPress.currentOrThrow
|
|
|
val containerColor = if (twoPane) getPalerSurface() else MaterialTheme.colorScheme.surface
|
|
|
val topBarState = rememberTopAppBarState()
|
|
|
+
|
|
|
Scaffold(
|
|
|
topBarScrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(topBarState),
|
|
|
topBar = { scrollBehavior ->
|
|
|
- TopAppBar(
|
|
|
- title = {
|
|
|
- Text(
|
|
|
- text = stringResource(R.string.label_settings),
|
|
|
- modifier = Modifier.padding(start = 8.dp),
|
|
|
- )
|
|
|
- },
|
|
|
- navigationIcon = {
|
|
|
- IconButton(onClick = backPress::invoke) {
|
|
|
- UpIcon()
|
|
|
- }
|
|
|
- },
|
|
|
+ AppBar(
|
|
|
+ title = stringResource(R.string.label_settings),
|
|
|
+ navigateUp = backPress::invoke,
|
|
|
actions = {
|
|
|
AppBarActions(
|
|
|
listOf(
|