diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/settings/custom/CustomSettingsPage.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/settings/custom/CustomSettingsPage.kt index 52ecdcce..bd7bd7d6 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/settings/custom/CustomSettingsPage.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/settings/custom/CustomSettingsPage.kt @@ -25,9 +25,11 @@ import androidx.compose.runtime.remember import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringArrayResource import androidx.compose.ui.res.stringResource +import androidx.compose.ui.res.vectorResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.datastore.preferences.core.stringPreferencesKey @@ -236,6 +238,22 @@ fun CustomSettingsPage( } } } + prefsItem { + SwitchPref( + key = "status_bar_darker", + title = stringResource(id = R.string.title_settings_status_bar_darker), + summary = stringResource(id = R.string.summary_settings_status_bar_darker), + defaultChecked = true, + ) { + LeadingIcon { + AvatarIcon( + icon = ImageVector.vectorResource(id = R.drawable.ic_beaker), + size = Sizes.Small, + contentDescription = null, + ) + } + } + } prefsItem { SwitchPref( key = "custom_toolbar_primary_color", diff --git a/app/src/main/res/drawable/ic_beaker.xml b/app/src/main/res/drawable/ic_beaker.xml new file mode 100644 index 00000000..d3068cdb --- /dev/null +++ b/app/src/main/res/drawable/ic_beaker.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d008ff9d..3b2cd7ae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -515,4 +515,6 @@ 将使用 App 内置的照片选择器 将使用原生的照片选择器 显示 + 状态栏遮罩 + 开启后非白色主题状态栏将略微变暗