add description to long-press on saved searches (#225)
* add description to long-press on saved searches * more i18n string
This commit is contained in:
parent
2a77232d80
commit
515496f058
7 changed files with 30 additions and 4 deletions
|
|
@ -350,7 +350,7 @@ object SettingsAdvancedScreen : SearchableSettings {
|
|||
// KMK -->
|
||||
Preference.PreferenceItem.SwitchPreference(
|
||||
pref = uiPreferences.preloadLibraryColor(),
|
||||
title = "Preload library's cover color",
|
||||
title = stringResource(KMR.strings.preload_library_cover_color),
|
||||
),
|
||||
// KMK <--
|
||||
Preference.PreferenceItem.TextPreference(
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ import exh.ui.ifSourcesLoaded
|
|||
import kotlinx.collections.immutable.persistentListOf
|
||||
import tachiyomi.core.common.Constants
|
||||
import tachiyomi.domain.manga.model.Manga
|
||||
import tachiyomi.i18n.sy.SYMR
|
||||
import tachiyomi.presentation.core.components.material.Scaffold
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
import tachiyomi.presentation.core.screens.LoadingScreen
|
||||
import tachiyomi.source.local.LocalSource
|
||||
|
||||
|
|
@ -179,6 +181,9 @@ data class SourceSearchScreen(
|
|||
onSave = {},
|
||||
savedSearches = persistentListOf(),
|
||||
onSavedSearch = {},
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc = stringResource(SYMR.strings.saved_searches),
|
||||
// KMK <--
|
||||
onSavedSearchPress = {},
|
||||
openMangaDexRandom = null,
|
||||
openMangaDexFollows = null,
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ import tachiyomi.core.common.util.lang.launchIO
|
|||
import tachiyomi.domain.UnsortedPreferences
|
||||
import tachiyomi.domain.source.model.StubSource
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.i18n.kmk.KMR
|
||||
import tachiyomi.presentation.core.components.material.Scaffold
|
||||
import tachiyomi.presentation.core.components.material.padding
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
|
|
@ -355,6 +356,9 @@ data class BrowseSourceScreen(
|
|||
}
|
||||
},
|
||||
onSavedSearchPress = screenModel::onSavedSearchPress,
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc = stringResource(KMR.strings.saved_searches_delete),
|
||||
// KMK <--
|
||||
openMangaDexRandom = if (screenModel.sourceIsMangaDex) {
|
||||
{
|
||||
screenModel.onMangaDexRandom {
|
||||
|
|
|
|||
|
|
@ -15,15 +15,16 @@ import eu.kanade.presentation.components.SuggestionChip
|
|||
import eu.kanade.presentation.components.SuggestionChipDefaults
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
import tachiyomi.domain.source.model.EXHSavedSearch
|
||||
import tachiyomi.i18n.sy.SYMR
|
||||
import tachiyomi.presentation.core.components.SettingsItemsPaddings
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
|
||||
@Composable
|
||||
fun SavedSearchItem(
|
||||
savedSearches: ImmutableList<EXHSavedSearch>,
|
||||
onSavedSearch: (EXHSavedSearch) -> Unit,
|
||||
onSavedSearchPress: (EXHSavedSearch) -> Unit,
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc: String,
|
||||
// KMK <--
|
||||
) {
|
||||
if (savedSearches.isEmpty()) return
|
||||
Column(
|
||||
|
|
@ -35,7 +36,9 @@ fun SavedSearchItem(
|
|||
),
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(SYMR.strings.saved_searches),
|
||||
// KMK -->
|
||||
text = onSavedSearchPressDesc,
|
||||
// KMK <--
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
)
|
||||
FlowRow(
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ fun SourceFilterDialog(
|
|||
onSave: () -> Unit,
|
||||
onSavedSearch: (EXHSavedSearch) -> Unit,
|
||||
onSavedSearchPress: (EXHSavedSearch) -> Unit,
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc: String,
|
||||
// KMK <--
|
||||
openMangaDexRandom: (() -> Unit)?,
|
||||
openMangaDexFollows: (() -> Unit)?,
|
||||
// SY <--
|
||||
|
|
@ -108,6 +111,9 @@ fun SourceFilterDialog(
|
|||
savedSearches = savedSearches,
|
||||
onSavedSearch = onSavedSearch,
|
||||
onSavedSearchPress = onSavedSearchPress,
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc = onSavedSearchPressDesc,
|
||||
// KMK <--
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ import tachiyomi.domain.manga.model.Manga
|
|||
import tachiyomi.domain.source.interactor.GetRemoteManga
|
||||
import tachiyomi.domain.source.model.SavedSearch
|
||||
import tachiyomi.domain.source.model.StubSource
|
||||
import tachiyomi.i18n.kmk.KMR
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
import tachiyomi.presentation.core.screens.LoadingScreen
|
||||
|
||||
class SourceFeedScreen(val sourceId: Long) : Screen() {
|
||||
|
|
@ -176,6 +178,9 @@ class SourceFeedScreen(val sourceId: Long) : Screen() {
|
|||
context.toast(it)
|
||||
}
|
||||
},
|
||||
// KMK -->
|
||||
onSavedSearchPressDesc = stringResource(KMR.strings.saved_searches_add_feed),
|
||||
// KMK <--
|
||||
openMangaDexRandom = if (screenModel.sourceIsMangaDex) {
|
||||
{
|
||||
screenModel.onMangaDexRandom {
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
<string name="invalid_downloads_cleaned">Invalid downloads cleaned</string>
|
||||
<string name="pref_private_installer_warning">Avoid using Private Installer because it\'s not stable yet, will lead to really slow start/resume App.</string>
|
||||
<string name="saved_searches_feeds">Saved Searches & Feeds</string>
|
||||
<string name="preload_library_cover_color">Preload library's cover color</string>
|
||||
|
||||
<!-- Onboarding section -->
|
||||
<string name="onboarding_permission_external_storage">Access media files permission</string>
|
||||
|
|
@ -97,6 +98,8 @@
|
|||
<string name="pref_source_related_mangas">Related Titles</string>
|
||||
<string name="pref_source_related_mangas_summary">Show related titles while viewing entry</string>
|
||||
<string name="related_mangas_more">More like these...</string>
|
||||
<string name="saved_searches_add_feed">Saved Searches (Hold to add to Feed)</string>
|
||||
<string name="saved_searches_delete">Saved Searches (Hold to delete)</string>
|
||||
|
||||
<!-- Feed Tab -->
|
||||
<string name="too_many_in_feed">Too many sources in your feed, cannot add more than limited (20)</string>
|
||||
|
|
|
|||
Loading…
Reference in a new issue