diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/SettingItem.kt b/app/src/main/java/me/ash/reader/ui/page/settings/SettingItem.kt index 986db496a..1054a6415 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/SettingItem.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/SettingItem.kt @@ -26,7 +26,7 @@ import me.ash.reader.ui.theme.palette.onDark @Composable fun SettingItem( modifier: Modifier = Modifier, - enable: Boolean = true, + enabled: Boolean = true, title: String, desc: String? = null, icon: ImageVector? = null, @@ -39,8 +39,8 @@ fun SettingItem( Surface( modifier = modifier - .clickable { onClick() } - .alpha(if (enable) 1f else 0.5f), + .clickable(enabled = enabled) { onClick() } + .alpha(if (enabled) 1f else 0.5f), color = Color.Unspecified ) { Row( diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/accounts/AddAccountsPage.kt b/app/src/main/java/me/ash/reader/ui/page/settings/accounts/AddAccountsPage.kt index 75abf8e3f..a823b2e67 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/accounts/AddAccountsPage.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/accounts/AddAccountsPage.kt @@ -73,14 +73,14 @@ fun AddAccountsPage( text = stringResource(R.string.services), ) SettingItem( - enable = false, + enabled = false, title = stringResource(R.string.feedly), desc = stringResource(R.string.feedly_desc), iconPainter = painterResource(id = R.drawable.ic_feedly), onClick = {}, ) {} SettingItem( - enable = false, + enabled = false, title = stringResource(R.string.inoreader), desc = stringResource(R.string.inoreader_desc), iconPainter = painterResource(id = R.drawable.ic_inoreader), diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/color/flow/FlowPageStylePage.kt b/app/src/main/java/me/ash/reader/ui/page/settings/color/flow/FlowPageStylePage.kt index 69d424e9d..a6e8b0280 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/color/flow/FlowPageStylePage.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/color/flow/FlowPageStylePage.kt @@ -103,7 +103,7 @@ fun FlowPageStylePage( SettingItem( title = stringResource(R.string.mark_as_read_button_position), desc = stringResource(R.string.top), - enable = false, + enabled = false, onClick = {}, ) {} SettingItem( diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingStylePage.kt b/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingStylePage.kt index 2ba49dc79..662568dc0 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingStylePage.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingStylePage.kt @@ -142,7 +142,7 @@ fun ReadingStylePage( SettingItem( title = stringResource(R.string.bionic_reading), separatedActions = true, - enable = false, + enabled = false, onClick = { // (!articleListDesc).put(context, scope) }, @@ -166,7 +166,7 @@ fun ReadingStylePage( } SettingItem( title = stringResource(R.string.rearrange_buttons), - enable = false, + enabled = false, onClick = {}, ) {} SettingItem( @@ -219,7 +219,7 @@ fun ReadingStylePage( title = stringResource(R.string.videos), desc = stringResource(R.string.videos_desc), icon = Icons.Outlined.Movie, - enable = false, + enabled = false, onClick = { // navController.navigate(RouteName.READING_PAGE_VIDEO) { // launchSingleTop = true diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingTitlePage.kt b/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingTitlePage.kt index 2bf2a4021..b1f162812 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingTitlePage.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/color/reading/ReadingTitlePage.kt @@ -147,7 +147,7 @@ fun ReadingTitlePage( SettingItem( title = stringResource(R.string.alignment), desc = subtitleAlign.toDesc(context), - enable = false, + enabled = false, onClick = { // subtitleAlignDialogVisible = true }, diff --git a/app/src/main/java/me/ash/reader/ui/page/settings/interaction/InteractionPage.kt b/app/src/main/java/me/ash/reader/ui/page/settings/interaction/InteractionPage.kt index 43fa8162f..14ba52094 100644 --- a/app/src/main/java/me/ash/reader/ui/page/settings/interaction/InteractionPage.kt +++ b/app/src/main/java/me/ash/reader/ui/page/settings/interaction/InteractionPage.kt @@ -83,7 +83,7 @@ fun InteractionPage( SettingItem( title = stringResource(R.string.open_link_specific_browser), desc = openLinkSpecificBrowser.toDesc(context), - enable = isOpenLinkSpecificBrowserItemEnabled, + enabled = isOpenLinkSpecificBrowserItemEnabled, onClick = { if (isOpenLinkSpecificBrowserItemEnabled) {